简体   繁体   English

Azure 活动目录 ioS 重定向问题

[英]Azure active directory ioS redirection issue

When I access my WebApp on iOS devices, it causes redirection back to login page from home page, after signing in.当我在 iOS 设备上访问我的 WebApp 时,它会在登录后导致从主页重定向回登录页面。

Like, AAD Login -> WebApp homepage(redirects to login) -> AAD Login -> WebApp homepage(properly logged in with no further redirection, at this point).比如,AAD 登录 -> WebApp 主页(重定向到登录)-> AAD 登录 -> WebApp 主页(此时正确登录,没有进一步重定向)。 It always signs in properly after second sign in, as shown.如图所示,它总是在第二次登录后正确登录。

WebApp works fine on Android and Windows without redirection problem. WebApp 在 Android 和 Windows 上运行良好,没有重定向问题。

I would appreciate if anyone can provide input on this.如果有人可以提供意见,我将不胜感激。 Thank you.谢谢你。

• I would suggest you to please check the '[BUNDLE_ID]' value you have used from the Azure portal. • 我建议您从 Azure 门户检查您使用的“[BUNDLE_ID]”值。 It should be 'com.microsoft.identitysample.MSALiOS' as the bundle identifier in 'info.plist' file.它应该是“com.microsoft.identitysample.MSALiOS”作为“info.plist”文件中的包标识符。 Once done, then please refer to the below link for more details regarding the sign-in callback link in 'AppDelegate.swift' file.完成后,请参考以下链接以获取有关“AppDelegate.swift”文件中登录回调链接的更多详细信息。

https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-ios#for-ios-only-handle-the-sign-in-callback https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-ios#for-ios-only-handle-the-sign-in-callback

• Also, please check the redirect URI in Azure AD whether it is in 'msauth.[Your_Bundle_Id]://auth' format or not. • 此外,请检查Azure AD 中的重定向URI 是否为'msauth.[Your_Bundle_Id]://auth'格式。 The default redirect URI format works for most apps and scenarios, including brokered authentication and system web view.默认重定向 URI 格式适用于大多数应用程序和场景,包括代理身份验证和系统 web 视图。 Use the default format whenever possible.尽可能使用默认格式。 Ensure that the redirect URIs configure in Azure AD for iOS follow MSAL redirect URI format requirements as given in below documentation: -确保在 Azure AD 中为 iOS 配置的重定向 URI 遵循以下文档中给出的 MSAL 重定向 URI 格式要求:-

https://learn.microsoft.com/en-us/azure/active-directory/develop/redirect-uris-ios#msal-redirect-uri-format-requirements https://learn.microsoft.com/en-us/azure/active-directory/develop/redirect-uris-ios#msal-redirect-uri-format-requirements

• Finally, please check whether the 'inte.netChanged' method is getting called in your scenario. • 最后,请检查“inte.netChanged”方法是否在您的场景中被调用。 If for your application, the 'viewController' is shown, then there is a logic for loading in the webview UI regarding the redirection from login page to home page and back.如果对于您的应用程序,显示了“viewController” ,那么在 webview UI 中有一个加载逻辑,用于从登录页面到主页和返回的重定向。 Please check the thread below for more information: -请检查以下线程以获取更多信息:-

Web app auto-redirecting to the initial page on iOS problem (it should NOT redirect) Web 应用程序自动重定向到 iOS 问题的初始页面(不应重定向)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Microsoft Portal azure active directory 获取错误问题 - Getting a error issue from Microsoft Portal azure active directory Azure 活动目录 MFA - Azure Active Directory MFA 具有 Azure Active Directory 身份验证的 Postgres - Postgres with Azure Active Directory Authentication Azure Active Directory - 范围 - 本地化 - Azure Active Directory - Scopes - Localisation 如果我们提供“使用微软登录”Azure Active Directory,是否必须提供“使用苹果登录”。 在我们的 iOS 应用程序中? - Is it a must to provide "sign in with apple" if we provide a "sign in with microsoft" Azure Active Directory. in our iOS App? CORS 将 OPENID Active Directory 身份验证添加到 Azure 应用程序服务时出现问题 - CORS Issue when added OPENID Active Directory Authentication to Azure App service Azure Active Directory Oauth 2.0 客户端凭证流与 API 管理访问令牌问题 - Azure Active Directory Oauth 2.0 Client Credentials Flow with API Management Access Token issue Azure Active Directory 中供应用程序使用的角色和权限 - Roles & Permissions in Azure Active Directory for Application Use 使用 Azure Active Directory 验证 Blazor WebAssembly 应用程序 - Authenticating a Blazor WebAssembly app with Azure Active Directory Azure Active Directory:如何检查设备成员资格? - Azure Active Directory: How to check device membership?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM