A React wrapper for Azure AD using the Microsoft Authentication Library (MSAL). The easiest way to integrate AzureAD with your React for authentication.
MIT License
344
stars
94
forks
source link
Two Redirect URI's on AAD B2C Stops Redirection to Login Page When Login Expires #228
Describe the bug
When I have two redirect URI's in my Azure AD B2C instance my web application will no longer redirect to the log in page when the access token has expired. Everything between the <AzureAD> tags stops showing (which is everything in my case). If I leave it at just one it redirects fine.
Once the app has stopped working the only way I can get it to go to the login page again is by clearing my local storage and my cookies.
I am unsure if this helps, but when the page has stopped loading, every refresh adds more and more entries in local storage.
Expected behavior
Application to redirect to the log in page when token expires.
To Reproduce
Steps to reproduce the behavior:
Have two redirect URI's in your Azure AD B2C instance.
Log in to your web app.
Either wait for the token to expire, or force it to expire early.
Reload page.
Page won't load anything
Desktop (please complete the following information):
One thing I am noticing is I get a lot of ClientAuthError's with the iframe:
I have seen others with this issue but haven't been able to resolve it myself. Would this be related to the current issue I'm having?
Library versions
react-aad-msal
: ^2.3.5msal
: ^1.2.1Describe the bug When I have two redirect URI's in my Azure AD B2C instance my web application will no longer redirect to the log in page when the access token has expired. Everything between the
<AzureAD>
tags stops showing (which is everything in my case). If I leave it at just one it redirects fine.Once the app has stopped working the only way I can get it to go to the login page again is by clearing my local storage and my cookies.
I am unsure if this helps, but when the page has stopped loading, every refresh adds more and more entries in local storage.
Expected behavior Application to redirect to the log in page when token expires.
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Below is how I have my code set up.
One thing I am noticing is I get a lot of ClientAuthError's with the iframe: I have seen others with this issue but haven't been able to resolve it myself. Would this be related to the current issue I'm having?