How can I get custom domains to work with Azure Active Directory B2C

Lou's World Inc 71 Reputation points
2024-11-27T07:28:51.2933333+00:00

We have been unsuccessful using a custom domain with our AD B2C.

We have-

  1. added a custom domain name and validated it
  2. configured a CallbackPath
  3. configure configured Front Door
  4. validated custom domain login URL
  5. defined custom domain/signin-oidc in app registration

However, we are unable to connect with our Azure AD B2C tenant without the redirect_uri still defined as the Azure URI (**.azurewebsites.net) not our custom domain and we can't figure out why. The result is once some logs in from the custom domain they end up on the Azure domain.

Any help would be greatly appreciated.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,965 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2024-11-27T10:20:41.0066667+00:00

    Hi @Lou's World Inc

    Thanks for reaching out.

    It seems to be configuration issue/

    Below are the high level steps that you need to perform in order to enable custom domains for Azure AD B2C using Front Door:

    1.      Add a custom domain name to your Azure AD B2C tenant

    2.      Create a new Azure Front Door instance

    3.      Set up your custom domain on Azure Front Door

    4.      Configure CORS

    5.      Test your custom domain

    6.      Configure your identity provider

    7.      Configure your application

    8.      Block access to the default domain name

    Reference - Refer to configure custom domain in Azure AD B2C: https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow

    Please verify that you are doing all the steps to configure custom domain at your end.

    Hope this will help.

    Thanks,

    Shweta

    Please "Accept the answer" if above answer helps you.


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.