android - 如何使用 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
解决方案
推荐阅读
- javascript - 在javascript中的异步函数之后运行函数
- algorithm - 这个算法是O(d)吗,其中d是二叉搜索树的深度
- c# - ContentDispositionHeaderValueIdentityExtensions.IsFileDisposition thows ArgumentNullException: Value cannot be null 参数名称:header
- excel - 如何为 VBA 宏设置热键(Ctrl+C、C)
- gitlab - 带有 Terraform 和 3rd 方插件的 Gitlab CI/CD
- swagger-ui - Springfox Swagger UI (api-doc) 中 url 的自定义注释
- mfc - 如何限制CComboBox中某些项目不被选中?
- excel - 分类数据的列注释部分作为单独的工作表
- r - 测试一个函数是否使用另一个函数
- math - 除了使用法线贴图外,何时将切线空间转换为世界空间?