简体   繁体   English

Azure AD 注销不起作用 - Angular SPA

[英]Azure AD Logout is not working - Angular SPA

I am using Azure AD authentication for my angular based single page application.我正在将 Azure AD 身份验证用于基于角度的单页应用程序。 Sign in functionality works like a charm and facing issues with the logout.登录功能就像一个魅力,面临着注销问题。 Once the user logged out from the session, its hang on the Azure AD sign out page and not get redirected to the URI given in the post_logout_redirect_uri and allowing users to login without entering credentials again.一旦用户从会话中注销,它就会挂在 Azure AD 注销页面上,并且不会被重定向到 post_logout_redirect_uri 中给定的 URI,并允许用户无需再次输入凭据即可登录。

Looked for the help over the web and spent almost a week to resolve the issue.在网上寻求帮助,花了将近一周的时间来解决问题。 But still I didn't find any resolution for this.但我仍然没有找到任何解决方案。 I came to know that already many users are facing the same issue and no solution provided for the same.我开始知道已经有很多用户面临同样的问题,并且没有提供相同的解决方案。

Has anybody faced this issue before and have a solution for the same?有没有人以前遇到过这个问题并有同样的解决方案?

I assume that you have added the app in Azure AD B2C .我假设您已在 Azure AD B2C 中添加了该应用程序。

Unfortunately,Azure new portal has removed POST LOGOUT LINK URI in company branding.不幸的是,Azure 新门户已删除公司品牌中的POST LOGOUT LINK URI In Azure classic portal , it also does not work for now.在 Azure 经典门户中,它现在也不起作用。 If this is important to you ,you can upvote it in this Feedback Forum .如果这对您很重要,您可以在此反馈论坛中点赞。

Hope this helps!希望这有帮助!

I could able to fix the issue by passing b2c signup/signin policy id in the logout url.我可以通过在注销 url 中传递 b2c 注册/登录策略 ID 来解决这个问题。 Now its get redirected to the desired logout landing page without hanging on Azure AD sign out page.现在它被重定向到所需的注销登录页面,而无需挂在 Azure AD 注销页面上。

https://login.microsoftonline.com/{TENANT}/oauth2/v2.0/logout?p={B2C_SIGNUPIN_POLICY_ID}&post_logout_redirect_uri={APPLICATION_URL}

Still i am getting this issue, even after passing b2c signup/signin policy id in the logout url. 即使在注销URL中传递b2c注册/登录策略ID之后,我仍然遇到此问题。

please let me know if any one have a solution for fixing this problem. 请让我知道是否有人可以解决此问题。

Thank you. 谢谢。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM