how to gaurd all my app urls with custom url, using custom policies?

Miguel 280 Reputation points
2023-04-17T16:22:22.6233333+00:00

for example I have this website myapp.com(angular-.Net) and I want all the urls to be guarded by msal, but when user go to myapp.com, they get redirect to msal gaurd to login but kepp the url as myapp.com/login for example instead of https://my-tenant.b2clogin.com/my-tenant.onmicrosoft.com/B2C_1A_DisplayControl_sendgrid_Signin/...

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

Accepted answer
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-04-20T06:25:58.8366667+00:00

    Hi @Miguel ,

    Thanks for reaching out.

    If I understood correctly, it seems you want to configure custom domain in the B2C URL which will change the default one my-tenant.b2clogin.com to myapp.com

    This can be achieved by enabling custom domain in Azure AD B2C. B2C custom domain functionality works with Azure Front Door.

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

    Here , app registration endpoints specify the default domain of B2C which further invokes the front door to resolve custom domain name.

    Hope this will help.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.