PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, September 4, 2022

[FIXED] How set up the screen that I see in my user flow AZ AD B2C

 September 04, 2022     angular, authentication, azure, azure-active-directory     No comments   

Issue

I've successfully integrated B2C authentication in my angular app using the MSAL package following this tutorial:

Configure authentication in a sample Angular... until step 3.

The "problem" comes when the authority has to be set like this: https:// login.microsoftonline.com/common as it says here instead of this https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/b2c_1_susi_reset_v2

And setting the authority domain as common or using my tenant id I can only see this screens Common: enter image description here

using tenant id: And when I click the use another account -> sign in options only see github and signIn with a key enter image description here

When the screen that I would like to see is this one (due to the identity providers): enter image description here

Am I missing some link or a configuration in my AD?

SOLUTION:

as Greg told me, if you want to see the screen that displays as user flow in azure (last pic) you need to create custom policies:

Create user flows and custom policies in Azure Active Directory B2C

Create the two more apps and get the starter pack and configure with your own tenant name as the link says.

if you want to add more social providers

In my case when trying to upload the xml's there was an error and this very helpful tool helped me (you can overwrite the files that it creates) Quick deploy samples

And finally in the authority field that requires the SMAL config you set 'https://your-tenant-name.b2clogin.com/your-tenant-name.onmicrosoft.com/b2c_1_YOUR_CUSTOM_POLICY_NAME'


Solution

You should check how to customize interface with User Flows/Custom Policies. Not only you can customize existing user experience (login screen, password reset, etc) but you may create your own "journeys" with Custom Policies.

You deploy those customization to your Azure AD B2C tenant , not in your app. Here is link



Answered By - Greg
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing