Skip to main content
Community site session details

Community site session details

Session Id : fHd82FnoCLVvgDBCBfELe5
Power Pages - Security
Answered

Azure AD B2C as default authentication for Power Pages

Like (0) ShareShare
ReportReport
Posted on 4 Nov 2022 01:30:18 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 04 Nov 2022 at 02:52:23
    Re: Azure AD B2C as default authentication for Power Pages

     

     

    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

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!

Announcing the Engage with the Community forum!

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

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35

Featured topics

Loading complete