admin管理员组文章数量:1356220
I have the functionality when the user doesn't accept the Permission ( At the first time login) I am redirecting it to Signin page. Since the token is cached it is constantly showing the Permission page.
Is there a way to clear the token which is cached ?
I have the functionality when the user doesn't accept the Permission ( At the first time login) I am redirecting it to Signin page. Since the token is cached it is constantly showing the Permission page.
Is there a way to clear the token which is cached ?
Share Improve this question asked Aug 24, 2021 at 13:02 rajatrajat 2173 silver badges13 bronze badges 2-
2
I don't think that's MSAL that is caching there, it's Azure AD. You can specify a
prompt
query parameter to the request to change what Azure AD does: learn.microsoft./en-us/azure/active-directory/develop/… (scroll down to the table and find the prompt parameter for the options) – juunas Commented Aug 24, 2021 at 13:11 - Cool. It worked. Thanks – rajat Commented Aug 24, 2021 at 13:30
1 Answer
Reset to default 6I don't think that's MSAL that is caching there, it's Azure AD. You can specify a prompt query parameter to the request to change what Azure AD does: https://learn.microsoft./en-us/azure/active-directory/develop/v2-oauth2-implicit-grant-flow#send-the-sign-in-request (scroll down to the table and find the prompt parameter for the options).
For example prompt=select_account
will force an account chooser.
本文标签: javascriptHow to Clear the cache token in MSAL SPAStack Overflow
版权声明:本文标题:javascript - How to Clear the cache token in MSAL SPA? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744040652a2580599.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论