question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting the Policy when Getting the Token

See original GitHub issue

Description

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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jmprieurcommented, Nov 8, 2018

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?

0reactions
jmprieurcommented, Feb 20, 2019

Closing as we have documented the B2C specificities

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting a personal access token policy for your organization
Organization owners can control whether to allow fine-grained personal access tokens and personal access tokens (classic), and can require approval for ...
Read more >
Configurable token lifetimes - Microsoft Entra
Learn how to set lifetimes for access, SAML, and ID tokens issued by the ... You can set token lifetime policies for access...
Read more >
Token Policy - RSA Community - 629489 - RSA Security
Fob-style tokens allow alphanumeric PINs. Under Fixed Passcode Lifetime, do one of the following: Select Use same settings from SecurID PIN if you ......
Read more >
Token Best Practices
Lists best practices when using tokens in authentication and ... When trying to get a refresh token, the audience parameter is not available...
Read more >
Configure an access policy
Test the setup. Let's test your access policy and get back an access token. You need the following values from your Okta OpenID...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found