【问题标题】:Redirect URL in Android Native AppAndroid Native App 中的重定向 URL
【发布时间】:2017-05-24 17:31:02
【问题描述】:

我正在尝试在原生 android 应用程序中使用 this Azure adal 库实现 SSO。

我在 android 中看不到任何有关 Redirect URL 的文档,一旦我在 microsoft 门户中输入有效的用户名和密码,我就无法使用 Redirect URL 重定向到我的 LoginFragment。

我的 AuthenticationContext 对象如下所示。

AuthenticationContext mAuthContext;
mAuthContext.acquireToken(
       wrapFragment(LoginFragment.this),
       Constants.AdlaConfig.RESOURCE_ID,
       Constants.AdlaConfig.CLIENT_ID,
       "https://LoginFragment", // Redirect URL
       "", 
       PromptBehavior.Auto, 
       "nux=1",
       getCallback());

在调试时,我可以看到这是一个重定向问题,请大家帮忙!

【问题讨论】:

  • 刚刚发现回复 URL 并不重要,只要它是一个有效的 URI 并且在 AZURE AD 中注册的应用程序是 Native 类型。

标签: android azure android-fragments adal


【解决方案1】:

听起来您已经解决了您的问题。作为参考,下面的文档列表可能有助于了解 Android 上的身份验证和 SSO。

  1. 如何configure a native client application
  2. Add authentication to your Android appsection 关于 Android 应用上的重定向 url
  3. How to enable cross-app SSO on Android using ADAL

希望对你有帮助。

【讨论】:

  • 谢谢彼得!对于链接。是的,我已经解决了我的问题。
猜你喜欢
  • 1970-01-01
  • 2011-06-25
  • 1970-01-01
  • 1970-01-01
  • 2021-01-26
  • 1970-01-01
  • 1970-01-01
  • 2014-04-13
  • 1970-01-01
相关资源
最近更新 更多