[英]ADAL iOS Redirect URI must be http(s)?
I'm working to get ADAL auth working in my iOS app (Xcode 8, running on iOS 10) using the latest version of the ADALiOS library (2.2.5) and have configured the authContext according to the documentation , but I'm receiving the following error: 我正在使用最新版本的ADALiOS库(2.2.5)在我的iOS应用(Xcode 8,在iOS 10上运行)上使ADAL身份验证正常工作,并已根据文档配置了authContext,但是我收到了出现以下错误:
AADSTS50011: Reply address 'x-msauth-<appname>://<app bundle id>/'
specified by the request is not a valid URL. Allowed schemes: 'http, https'
This error message directly conflicts with the documentation which explicitly calls for the Redirect URI to be an iOS app URL, not a web URL: 此错误消息与文档明确冲突,该文档明确要求重定向URI为iOS应用URL,而不是Web URL:
Redirect URI
重定向URI
This adds extra requirements on your redirect URI.
这在重定向URI上增加了额外的要求。 Your redirect URI must be in the proper form.
您的重定向URI必须采用正确的格式。
<app-scheme>://<your.bundle.id>
ex: x-msauth-mytestiosapp://com.microsoft.mytestiosapp
This Redirect URI needs to be registered on the app portal as a valid redirect URI.
此重定向URI需要在应用程序门户上注册为有效的重定向URI。 Additionally a second "msauth" form needs to be registered to handle certificate authentication in Azure Authenticator.
此外,还需要注册第二个“ msauth”表单来处理Azure Authenticator中的证书身份验证。
msauth://code/<broker-redirect-uri-in-url-encoded-form>
ex: msauth://code/x-msauth-mytestiosapp%3A%2F%2Fcom.microsoft.mytestiosapp
Is there config in the Azure portal that is missing which allows non-HTTP redirect URLs? Azure门户中是否缺少允许非HTTP重定向URL的配置? Is this a bug in the ADALiOS library?
这是ADALiOS库中的错误吗?
Also, where does the encoded Redirect URI need to be registered? 另外,编码后的重定向URI需要在哪里注册? In the iOS app's .plist?
在iOS应用的.plist中? In the Azure portal?
在Azure门户中? Both?
都?
You must be trying to register the app as a Web Application. 您必须尝试将应用程序注册为Web应用程序。 You need to create a new application in the directory as a Native Client Application :
您需要在目录中创建一个新应用程序作为本机客户端应用程序 :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.