AADSTS51005: Service returned a temporary redirect
The service returned a temporary redirect.
What to check
- Check the
Locationheader and allow the supported client to follow the redirect.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The lookup asks the client to start a gateway redirect.
Microsoft remediation: Microsoft treats this as an expected part of certain authentication flows, not proof that authentication failed.