简体   繁体   English

ADAL iOS重定向URI必须为http(s)吗?

[英]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.

相关问题 使用iOS上的Facebook SDK时出现错误“ redirect_uri URL必须是绝对的” - I got the error “The redirect_uri URL must be absolute” with Facebook SDK on iOS 在本机iOS应用程序中使用PassportJS和Nodejs遇到错误“ redirect_uri URL必须是绝对的” - Getting error “The redirect_uri URL must be absolute” using PassportJS and Nodejs in native iOS application 登录时使用Unity SDK 7.1.0 + iOS“ redirect_uri URL必须是绝对的” - Unity SDK 7.1.0 + iOS “The redirect_uri URL must be absolute” on login 什么是重定向URI?它如何应用于OAuth2.0的iOS应用程序? - What's a redirect URI? how does it apply to iOS app for OAuth2.0? react-native-plaid-link-sdk 的重定向 uri 对 ios 的访问被拒绝错误 - react-native-plaid-link-sdk's redirect uri has access denied error with ios Spotify ios SDK登录:无效的重定向URI - Spotify ios SDK Login: Invalid Redirect URI iOS App上的无效重定向URI Linkedin API - Invalid redirect URI Linkedin API on iOS App 不接受instagram REDIRECT URI ios计划 - instagram REDIRECT URI ios scheme not accepted 不支持iOS的Facebook OAuthSwift redirect_uri - Facebook OAuthSwift redirect_uri not supported iOS Skype URI无法在iOS 9中运行 - Skype URI's not Working in iOS 9
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM