<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 EAM Error AADSTS5001255 Failed to Validate Authorization URL
Single Sign-On
Okta Identity Engine
Overview

This guide will help resolve an error that occurs when a user attempts to authenticate with Okta as an external authentication method (EAM) for Entra ID. The following error is returned:

 

We couldn't complete your verification 

Message: AADSTS5001255: Failed to validate authorization url of external authentication provider.

 

 

Error Message

Error Message 

Applies To
  • Okta
  • Entra ID
  • External Authentication Method
  • Okta Identity Engine (OIE)
Cause

The error occurs because the Redirect URI for the Okta application registration is configured incorrectly in Entra ID. 

Solution
  1. In Entra ID, ensure the application registration is set to the WEB type.

  2. Verify the Redirect URI is configured with 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
Entra ID EAM Error AADSTS5001255 Failed to Validate Authorization URL