Skip to main content
Community site session details

Community site session details

Session Id : W4r/iEERigw4hGHMufSLJ0
Power Pages - Customize & Extend
Unanswered

Azure B2C Custom Policy to sign user in.

Like (0) ShareShare
ReportReport
Posted on 27 Jul 2023 08:58:02 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 29 Aug 2023 at 09:09:22
    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,949 Most Valuable Professional on 26 Aug 2023 at 13:57:55
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics

Loading complete