When we configure an App or Website to authenticate via Azure B2C – this will give us a vanilla Log In and Sign-up Page.
We will often want to customize this page and define the appearance according to our intended content and not just the default.

We can do this by editing the Settings for the Azure B2C User Flow in question – specifically the Page Layouts for that User Flow.
Initially this will be set to ‘Use custom page content’ as NO – but we can change this to YES and set where this Custom Page Content should come from.

Now when we think of using Power Apps Portals, we want this Custom Page URL to be supplied from the Portal Content held in our Dynamics Portal.
Specifically a Page that is ready to merge the content in our Portals with the content produced by Azure B2C:

In the example above, this is following the default format of:
- Page - Page in Portal Management to define the partial URL of /azure-ad-b2c-sign-in
- Page Template - This connects to a Page Template so this can be used across multiple Pages
- Web Template - The Page Template connects up to a Web Template that handles the HTML that will be read from the Power Apps Portal, merged with Azure B2C and then presented from Azure B2C to the user.
This means that the Web Template can be designed and built in Power Apps Portals and then used in however many Pages we need the same base Template for.
Now – the unique content for the User Flow is actually generated by Azure B2C and then ‘fed into’ our Web Page + Template Html.
This often means we can define the broad Styling and Frame for our page in the Web Template – use this Web Template in our Pages – so each unique Page we connect into Azure B2C is mainly just giving us a different partial URL.

Viewing the the Pages connected with our Page Template and Web Template.
The Page Content is then just the basics to define the Page and insert any unique HTML Content only if required:

Defining a New Password Page in the same way
This page can then be likewise configured into one of the Azure B2C User Flows:

Connecting the Change Password Page for the B2C Password Reset User Flow to the Content in Power Apps Portals
xxx