<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Entra ID External Authentication Method Error AADSTS5001255 Failed to Validate Authorization URL in Okta

Single Sign-On
Okta Identity Engine

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.

 

Error Message

Error Message 

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.

  1. In Entra ID, set the application registration to the WEB type.
  2. 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

 

Related References

Loading
Okta Support - Entra ID External Authentication Method Error AADSTS5001255 Failed to Validate Authorization URL in Okta