Does SSO work with Microsoft?
Hello, the SSO authentication with Microsoft Entra ID fails with invalid_provider and token_response_not_found errors.
I am using React Router v7.
I registered the provider using:
Then i attempt to sign in with:
What Happens:
I am using React Router v7.
I registered the provider using:
Then i attempt to sign in with:
What Happens:
- User is redirected to Microsoft's authorization endpoint
- Microsoft returns 302 FOUND with authorization code to callback URL:
http://localhost:5173/api/auth/sso/callback/entra?code=[AUTH_CODE]&state=[STATE]&session_state=[SESSION_STATE] - This immediately redirects again with 302 FOUND to:
http://localhost:5173/api/auth/error/error?error=invalid_provider&error_description=token_response_not_found