Request was routed from a verified domain which is not CustomUrlDomain

Martin Hinshelwood nkdAgility.com 75 Reputation points MVP
2024-06-24T09:03:24.6066667+00:00

I have a front door setup that has been working for many months. Now all of a sudden I am getting: **"**AADSTS399280: Request was routed from a verified domain which is not CustomUrlDomain."

Any ideas? I cant see any changes at all to any of the configuration or setup. This was working on Friday, and now on Monday its not.

The Setup:

I have a production Entra for my company that is on domain.com. To allow folks to login to my website on domain.com I have a second Entra for Customers configured to use my.domain.com. My website (Wordpress) then authenticates with mydomain.ciamlogin.com... I have a Front Door setup in ProdEntra to allow auth on login.domain.com for mydomain.ciamlogin.com.

The Problem: The route to login.domain.com results in "AADSTS399280: Request was routed from a verified domain which is not CustomUrlDomain." error.

Workaround:

On the auth, if I swap out the domain I can get it to work, so this does not work:

https://login.domain.com/658c1a65-f834-4a61-b64c-91b9a7b3e481/oauth2/v2.0/authorize?client_id=f18a31b9-50fb-45ea-ae5a-d904d0b19c67&nonce=66782fc4c344d&redirect_uri=https%3A%2F%2Fdomain.com%2Fauth%2F&response_mode=query&scope=https%3A%2F%2Fgraph.microsoft.com%2Fuser.read+openid+email+profile&state=https%253A%252F%252Fdomain.com%252Fwp-admin%252F&response_type=code

But this does:

https://mydomain.ciamlogin.com/658c1a65-f834-4a61-b64c-91b9a7b3e481/oauth2/v2.0/authorize?client_id=f18a31b9-50fb-45ea-ae5a-d904d0b19c67&nonce=66782fc4c344d&redirect_uri=https%3A%2F%2Fdomain.com%2Fauth%2F&response_mode=query&scope=https%3A%2F%2Fgraph.microsoft.com%2Fuser.read+openid+email+profile&state=https%253A%252F%252Fdomain.com%252Fwp-admin%252F&response_type=code

Questions: I would like to understand what the problem is, and how to fix it.

Has something changed in the way Microsoft configures these features?

Where do I find the CustomUrlDomain field?

Microsoft Entra
Microsoft Entra
A group of Microsoft multicloud identity and access solutions.
2,581 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Givary-MSFT 35,606 Reputation points Microsoft Employee Moderator
    2024-06-24T10:22:45.1+00:00
    0 comments No comments

  2. Sampo Kivistö 0 Reputation points
    2025-06-09T11:09:48.9933333+00:00

    I had same problem and you need to add the URL not only as verified "custom domain name" but also as "custom url domain". The UI is little bit confusing.

    Go to Microsoft Entra Admin center using external tenant.
    Open Identity - Settings - Domain names

    • Verify the new domain shows as "verified"

    On that same sub-page select "Custom url domains" in the opened sub-page second side-menu and add your login domain name there.

    Should work now.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.