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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Azure B2C Custom Polic...
Power Pages
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:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,953 Most Valuable Professional on at

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

  • sephira Profile Picture
    3 on at

    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. 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 56

#2
Valantis Profile Picture

Valantis 28

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard