MsalAuthenticationTemplate.tsx doesn't log in after logging out #7392
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-browser
Related to msal-browser package
msal-react
Related to @azure/msal-react
Needs: Attention 👋
Awaiting response from the MSAL.js team
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.26.1
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
2.1.1
Public or Confidential Client?
Public
Description
When logging out using
logout({ onRedirectNavigate: () => false })
, the componentMsalAuthenticationTemplate
renders nothing and doesn't redirect or open a popup.As I thought this was a desired state, I suggested to add a component to be shown in this case (#7388) but since I was told that this is a bug and shouldn't happen, I'm opening this issue to assure this state is handled properly.
Error Message
Nothing is visible on the screen - the component
MsalAuthenticationTemplate
renders asnull
.MSAL Logs
Click to show the logs:
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
src/auth.msal.ts
and insert your client-id.Expected Behavior
According to #7388, the correct behavior is to run the login action, bringing the component into the loading state, instead of showing an empty screen.
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge, Safari, Other
Regression
No response
The text was updated successfully, but these errors were encountered: