I have a SPA app configured and an enterprise connection with Microsoft Azure AD. I have followed these guidelines Connect Your App to Microsoft Azure Active Directory.
When I access the app, it challenges me with an option to select Microsoft Azure AD for authentication and then it challenges me to enter my Microsoft 365 credentials. After authentication, auth0 redirects back to my application on the callback endpoint with access token. Application then uses the access token to call /userinfo
endpoint and it returns response successfully. But after this I get redirected back to auth0 /authorize
endpoint and it goes in endless loop till /userinfo
endpoint errors out with rate limiting.
Can someone point out what I am missing?