In an Azure b2c app Authentication, impossible to add a SPA redirect urls that contains an underscore

Valleix 1 Reputation point
2021-11-17T09:50:51.813+00:00

Azure returns an error when we add an url that contains an underscore _ in an azure ad b2c app.

see the screenshot for an example150057-screenshot-from-2021-11-17-10-49-23.png

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
3,016 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,746 Reputation points
    2021-11-23T08:07:33.06+00:00

    Hi @Valleix • Thank you for reaching out.

    This is not a case specifically for Azure AD B2C or Single Page Applications. Underscore is not a supported character in reply url for the application with "signInAudience" set to "AzureADandPersonalMicrosoftAccount" or "PersonalMicrosoftAccount". Basically the applications that support Microsoft Accounts (previously known as Live IDs).

    151676-image.png

    • In Azure AD B2C tenant, the signinAudience is set to AzureADandPersonalMicrosoftAccount, if you select the Accounts in any identity provider or organizational directory (for authenticating users with user flows) option.
    • In standard Azure AD tenant, the signinAudience is set to AzureADandPersonalMicrosoftAccount, if you select the Accounts in any organizational directory (Any Azure AD directory - Multitenant) and the signinAudience is set to PersonalMicrosoftAccount if you select the personal Microsoft accounts (e.g. Skype, Xbox) option during app registration.

    As of now, there is no workaround available for these applications to use reply URLs with an underscore. You may post feedback regarding this at the User Voice portal which is monitored by the product team for feature enhancements.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    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.