AADSTS40015: Federated provider could not redeem the authorisation code
The federated provider could not redeem the authorisation code.
What to check
- Restart authorisation and check the code exchange in the provider's logs if it fails again.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The lookup gives only the general provider error. Use the full response to identify the failed token exchange.
Microsoft remediation: Ask the external identity provider's administrator to investigate the response.