Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Why is azure in an infinite redirect loop?


Asked by Jaxton Newman on Dec 10, 2021 FAQ



I have an MVC5 Azure web site which was working fine last night. Now it seems to be stuck in an infinite redirect loop when trying to login via chrome. It works fine from Edge and FireFox. It uses Azure AD for authentication. The redirects are back and forth from the main site to login.microsoftonline.com.
Furthermore,
Now it seems to be stuck in an infinite redirect loop when trying to login via chrome. It works fine from Edge and FireFox. It uses Azure AD for authentication. The redirects are back and forth from the main site to login.microsoftonline.com.
Next, When users sign in to the application on Microsoft Edge, they are redirected back from the AAD login page and are stuck in an infinite redirect loop resulting in repeated page reloads. This is usually accompanied by an invalid_state error in the session storage. Infinite acquire token loops and AADSTS50058 error.
In addition,
“This Webpage has a Redirect Loop” error in Google Chrome. Redirect loop is like a situation wherein “A points to B and B points back to A”. Such a redirection will keep browser in an infinite loop and the webpage will never be displayed. In old times, such redirect or infinite loops used to result in a hung browser.
One may also ask,
The response in this frame should be a 200 OK instead of a 302 redirect back to Azure AD. This is the starting point for the infinite loop. Looking at frame 15 below, we POST the id token to the site.