B2C login timeout after App Service deployment slot swap #6466
Labels
b2c
Related to Azure B2C library-specific issues
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
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
2.30.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
1.5.0
Public or Confidential Client?
Public
Description
We are using msal-browser along with msal-react to implement auth in our next.js application with Azure AD B2C. Our next.js application is hosted on Azure App Service (runtime node 18). We deploy code changes via a github action to a staging slot and then swap the staging slot with our production slot to release the changes.
We have a single App Registrant in our B2C tenant that is shared by both deployment slots. The B2C configs are provided to our application via configuration values and fetched as server-side props.
Intermittently, about an hour after performing a swap (for changes unrelated to auth), the connection between our app and B2C will seemingly break as the login request will timeout and result in a B2C error. We do not observe any errors in our application code and the issue recovers on its own after 15-30mins.
Error Message
The error in the console states that the requested service has either moved, had a name change, or been deleted even though no changes to the B2C configuration values or app registrant have been made.
Msal Logs
No logs available.
MSAL Configuration
Relevant Code Snippets
Doesn't seem to be isolated to a specific section of code.
Reproduction Steps
This occurs intermittently, but the repro steps include:
Expected Behavior
There should be zero downtime for the B2C connection when performing an App Service deployment slot swap.
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome
Regression
No response
Source
External (Customer)
The text was updated successfully, but these errors were encountered: