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 AD B2C as defaul...
Power Pages
Answered

Azure AD B2C as default authentication for Power Pages

(0) ShareShare
ReportReport
Posted on by 34

 

Setting Azure Active Directory B2C as the default authentication provider for a Power Pages site will automatically redirect users to the Azure Active Directory B2C login and registration page upon clicking on the main navigation (Sign in) item:

 

Clicking this Sign in:

 

bildaps_0-1667523109169.png

 

Meant to redirect to: 

 

bildaps_1-1667523181570.png

 

Instead of the pre-configured page:

 

bildaps_2-1667523246847.png

 

Setting B2C as default does not seem to persist after configuration Sync, this is the case either way when it's the sole active authentication or whether there are other active options:

 

20221104020130.gif

 

The relevant B2C tenant, app registration, and flows are working ok, also accessing the B2C login and registration pages from the Power Page site is working ok:

 

20221104022226.gif

 

What am I doing wrong? 😅

Categories:
  • Verified answer
    bildaps Profile Picture
    34 on at

     

     

    Ok, so I found the solution:

     

    Setting B2C as the default identity provider from the Power Pages portal adds a Site Setting with the name:

     

    Authentication/Registration/LoginButtonAuthenticationType

     

    The added Site Setting has the value of (Authority) i.e. the Issuer URL of the sign up and sign in User Flow in the relevant B2C Tenant, that looks something like this:

     

    https://YOUR-B2C-TENANT.b2clogin.com/tfp/cb6f1ac7-7006-40b8-bec9-3d5b3d77b079/b2c_1_YOUR-SIGNIN-SIGNUP-USERFLOW/v2.0/

     

     

    The default setting was not persisting because of the presence of a duplicate setting with the same name and an empty value.

     

    Removing the duplicate Site Setting from Portal Management fixes the issue:

     

    Untitled-video-Made-with-Clipchamp-_3_.gif

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 35

#2
M Bilal Khan Profile Picture

M Bilal Khan 33

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard