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.