Skip to main content

AADSTS700005: Authorisation code was redeemed in the wrong tenant

The authorisation code was redeemed in the wrong tenant.

What to check​

  1. Redeem the code using the same tenant authority that issued it.

Official reference​

Microsoft Learn: AADSTS error codes

Microsoft error lookup​

Message summary: The authorisation code was redeemed in the wrong tenant.

Microsoft remediation: Send the token request to the same tenant that issued the authorisation code.

Open AADSTS700005 in Microsoft’s lookup