Entra ID External Authentication Method Error AADSTS5001255 Failed to Validate Authorization URL in Okta
Last Updated:
Overview
Entra ID generates an error when a user attempts to authenticate with Okta as an external authentication method (EAM) because an incorrect Redirect Uniform Resource Identifier (URI) exists in the Okta application registration. Administrators resolve this issue by setting the application registration to the WEB type and verifying the Redirect URI configuration. Entra ID returns the following error during authentication:
We couldn't complete your verification
Message: AADSTS5001255: Failed to validate authorization url of external authentication provider.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Entra ID
- External Authentication Method (EAM)
Cause
An incorrect Redirect Uniform Resource Identifier (URI) exists in the Entra ID configuration for the Okta application registration.
Solution
How is the Redirect URI configured in Entra ID?
Configure the application registration as a WEB type and verify the Redirect URI matches the correct environment value.
- In Entra ID, set the application registration to the WEB type.
- Verify the Redirect URI contains the correct value for the environment:
- Production:
https://<org-name>.okta.com/oauth2/v1/authorize - Preview:
https://<org-name>.oktapreview.com/oauth2/v1/authorize
- Production:
