Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Issue with Using Azure B2C for Portal Authentication

(0) ShareShare
ReportReport
Posted on by

I am trying to setup the Dynamics Portal to use Azure B2C for authentication.  I have gone through the steps multiple times and had other people do it as well.  We get a button on the sign in screen to take you to the login screen.  However, it gives an error.  The issue appears to the what do put for "Federation Name".  I am assuming I can make something up and use it consistently in the steps.  However, in step 3 it has a note in blue that the "Reply URL" must be in the format "[portal domain]/signin-[Federation-Name]".  I did that but when I go directly to that URL, I get a 404 not found.  Any help would be appreciated.

docs.microsoft.com/.../azure-ad-b2c

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Issue with Using Azure B2C for Portal Authentication

    I found my issue.  The value I was using above for "Authority" was incorrect.  You have to open the metadata and get the "Issuer" value.  The instructions below are more clear on how to do that in step 19.  The microsoft instructions listed in the first post is too vague and doesn't explain this step well.

    www.adoxio.com/.../azure-ad-b2c-setup

  • Community Member Profile Picture
    on at
    RE: Issue with Using Azure B2C for Portal Authentication

    Dmytro, thank you for the links.  I changed my setting "Authentication/OpenIdConnect/b2c/Authority" to domainhere.b2clogin.com/.../v2.0  I got this URL from the top of the "Sign-up or sign-in policy" in azure.  Is that correct? Currently when I click the "B2C" button in the portal it takes me <portaladdress>/Account/Login/ExternalAuthenticationFailed

  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at
    RE: Issue with Using Azure B2C for Portal Authentication

    Hi, You don't need go directly to the url, because it intended to respond to auth request, and not normall GET request.

    I think something is missing, There are several links with step-by-step configuration, like this one : debajmecrm.com/.../dynamics-365-adx-portals-dynamics-365-portal-authentication-with-external-identities-part-i-authentication-with-azure-active-directory

    Also you can look into www.adoxio.com/.../azure-ad-b2c-setup - but it is for setup Connect365, which is works on top of the Portals. Again - it contains all steps for Portal configuration as well.

  • Community Member Profile Picture
    on at
    RE: Issue with Using Azure B2C for Portal Authentication

    Thanks Aric.  Yes I did that and just wanted to make sure that was correct.  The issue appears to be when you go directly to the URL for "RedirectUri", you get a 404 not found error.  Here is an example of what the site URL is: https://mysite.com/signin-b2c.  I can go to "https://mysite.com/signin&quot; and that works but when you add the dash followed by the federation name, it gives 404.

  • Aric Levin - MVP Profile Picture
    30,188 Moderator on at
    RE: Issue with Using Azure B2C for Portal Authentication

    The federation name is the name that you set up across the board.

    In Site Settings, you can call it AzureB2C or b2c or anything else you want to set it up with.

    You will need to use it for the Authority, ClientId, ExternalLogoutEnabled, RedirectUri:

    The same will be set in Azure B2C as well. The reply url in Azure will be the same as the RedirectUri in Dynamics Site Settings.

    Example:

    Authentication/OpenIdConnect/b2c/Authority...

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans