首页 > 解决方案 > 如何使用 Intune SDK 集成的 Android 应用进行 SSO 登录

问题描述

我正在尝试在 Android 应用程序中进行 SSO 登录,但出现异常:

I/AuthManager:异常:重定向 uri 的 base64 url​​ 编码签名组件与预期值不匹配。类型:com.microsoft.aad.adal.cl

使用 Intune SDK 和 ADAL lib 构建集成了 intune SDK 的原生 Android 应用程序,如果我们在没有 SSO 的情况下登录应用程序,它可以正常工作。现在尝试按照以下链接中的 Microsoft 文档所述实现 SSO 登录: https ://docs.microsoft.com/en-us/azure/active-directory/develop/howto-v1-enable-sso-android 。但它不起作用并得到上述异常。

我们已经在 Azure 门户中基于 Base64UrlencodedSignature 配置了重定向 URI。

设置为代理应用程序:

AuthenticationSettings.INSTANCE.setUseBroker(true);

尝试使用提示登录:

AuthManager.signInWithPrompt(mAuthContext, StartActivity.this,
                        StartActivity.this, PromptBehavior.Auto, mHandler);

我正在使用 Taskr 示例应用程序作为测试应用程序,链接如下: https ://github.com/msintuneappsdk/Taskr-Sample-Intune-Android-App

标签: androidandroid-studioadalintune

解决方案


推荐阅读