Skip to main content

AADSTS51005: Service returned a temporary redirect

The service returned a temporary redirect.

What to check​

  1. Check the Location header 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.

Open AADSTS51005 in Microsoft’s lookup