web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dynamics 365 Portal Sign in failed after login from Azure B2C

(0) ShareShare
ReportReport
Posted on by 20

Hi There,

When users redeem invitation or login to our portal, sometime go to the "sign in failed" portal page(  /Account/Login/ExternalAuthenticationFailed)  after they are authenticated from Azure B2C  and redirected back to portal, 

But if the users redeem or login again, they authenticate successfully. This doesn't happen every time for a user. 

And the reply uri in Azure for the portal app is set properly. 

Is there anyone know what might be the cause? 

Thanks in advance

I have the same question (1)
  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Partner,

    It may be caused by portal cache.

    You could try to add your portal base URL in the Azure AD Application.

    This blog is also for your reference.

    https://powermaverick.dev/2019/07/03/resolved-portal-authentication-error-using-azure-b2c/

    Best Regards,

    Leo

  • CU19121233-0 Profile Picture
    4 on at
    Hello ,
     
    Did anyone found how we can dubeg this issue.
    We already have azure B2C setup.
     
    I suspect updating secrets in app registration stopped communication between B2C and powerpage.
    Please help to provide more details.
  • Suggested answer
    CU08121023-0 Profile Picture
    26 on at

    I’ve noticed that intermittent “sign in failed” errors after Azure B2C authentication are often caused by portal caching or outdated secrets in the app registration. To troubleshoot, I make sure the portal base URL is added in Azure AD, verify all reply URIs, and check that client secrets or certificates are current. Clearing portal cache and testing a fresh login usually helps identify whether the issue is cache-related or due to misaligned app registration settings.

     
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans