Setting the Policy when Getting the Token
See original GitHub issueDescription
Using the latest 2.3 preview, I’m trying to determine how I might specify which B2C policy I want to use when getting the token for my user. For example I may want to generically allow my user to Sign Up or Sign In… I may have a flow in which my UI has a button to Sign In and thus want a Sign In Policy, or a Facebook icon that when tapped would go to a SUSI policy specific for Facebook.
I can find no mention of Policies in the Wiki, and the sample Xamarin Forms app no longer implements any policies.
What authentication flow has the issue? * [X] Interactive (Devices)
What is the identity provider ?
- Azure AD
- Azure AD B2C
If B2C, what social identity did you use? n/a
Expected behavior Be able to specify the Policy you want to get the desired UX
Actual behavior There is no ability to specify and as a result you get a generic Microsoft Login
Possible Solution Add to the API to allow something like:
await pca.AquireTokenAsync(scopes, account, uiParent, "b2c_1_susi");
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Thaks for the update, @dansiegel I agree we need to improve the B2C support in MSAL.NET’s conceptual documentation. We have plans to have specific APIs for B2C in MSAL.NET (no ETA yet) @parakhj for the feedback. Do you want to close the issue?
Closing as we have documented the B2C specificities