Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Unanswered

Azure B2C Custom Policy to sign user in.

(0) ShareShare
ReportReport
Posted on by 3

Hi Everyone,

I have a custom Azure B2C Policy that does the following:

1. Verifies the users e-mail

2. Gets the user to set (reset) their password

3. Add a 2FA number and verify it

 

After this I would like to have the user logged into the site. I am sending the claims and the JWT token is looking good but no matter what I try I can not get the user logged in on completing the journey?

Not sure on:

- exactly what URL to use to call the custom policy

- what return URL I should use to get the user signed in (and what methods - code & token with form_post?)

I am assuming a custom policy other than the one mentioned in my Authority setting can log users in? I have put the policies issuer URL into the site settings in the Issuers section. 

Any help on this topic greatly appreciated. 


Many Thanks.

Categories:
  • sephira Profile Picture
    3 on at
    Re: Azure B2C Custom Policy to sign user in.

    Hi Christian,

    Thanks for the reply. 

     

    This seems to be the steps for a standard setup but does not leave the user logged in when using an additional custom policy. The only way I could get it to work was by creating another authentication method for the portal and setting the authority to the custom policy. Simply adding it to the valid issuers did not seem to work. 

  • ChristianAbata Profile Picture
    8,947 Most Valuable Professional on at
    Re: Azure B2C Custom Policy to sign user in.

    hi @sephira here is a master video about that Configure Azure AD B2C Authentication for Power Pages | Power Apps Portals - YouTube

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics