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:
Meant to redirect to:
Instead of the pre-configured page:
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:
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:
What am I doing wrong? 😅
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:
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35