Even after days of reading and going through several tutorials I still cannot figure out how to use AAD B2C custom policies to arrange the login / signup UI. As my starting point I am using the starter pack for SocialAndLocalAccounts.
I would like to:
Move the social logins above the email/password section. I could maybe achieve this with custom page css, but surely I must have some control over the page content with the custom policies or is all this hardcoded the way it is presented?
I want to add a terms link only on the signup page. This I cannot do in the custom page css because then it also appears on the login page of the combined login/signup flow. I have enabled js so that I can replace a text element with my hyperlink to the terms as hinted at in the MS Docs. However, this example assumes you will have a checkbox, but I don't want that. Only a simple div with the hyperlinked terms for the user to read. I can't figure out how to insert a simple text field in the form which will only appear on the signup page - because I cannot see how the elements on the pages are created. Are they hardcoded based on claims?
PS! I read that you should not edit the TrustFrameworkBase.xml, but in order to remove claim types from the form such as given name, surname and displayname I can find no other way. I can add new things in the TrustFrameworkExtensions.xml, but I can't remove things from the base as it seems to merge the two.