Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to avoid IDP selection prompt when invoking "edit profile" policy in B2C? #588

Closed
DaRosenberg opened this issue Jul 1, 2018 · 5 comments
Labels
Milestone

Comments

@DaRosenberg
Copy link

My app is a Xamarin.iOS app targeting an AAD B2C tenant.

To invoke the AAD B2C "edit profile" policy, it seems we need to specify an explicit authority in the call to AcquireTokenAsync(), using one of the overloads that accept an authority parameter.

However, all 4 overloads that accept an authority parameter, also require the behavior parameter, and because the UIBehavior type is a struct it cannot be supplied as null. Nor does it have any static fields to initialize an empty/zero behavior.

As a result, we have to specify either SelectAccount, ForceLogin or Consent, and in my testing, all of them results in the IDP selection UI being displayed before the actual profile edit UI.

How can we avoid showing an IDP selection UI in AAD B2C and instead directly present the user with the actual profile edit UI?

@jmprieur
Copy link
Contributor

  • @parakhj
    I believe that this is on the backlog to try and fix this. @negoe : can you please confirm?

@jmprieur
Copy link
Contributor

@henrik-me another good one;

@henrik-me
Copy link
Contributor

@jmprieur : makes sense to investigate options.

@jmprieur
Copy link
Contributor

Proposal is to add a new constant named NoPrompt to the UIBehavior structure.
When the uIBehavior parameter is be set to NoPrompt in overrides of AcquireTokenAsync on public client application, MSAL.NET won't send a prompt=xxx clause any longer.

cc: @henrik-me

@jmprieur
Copy link
Contributor

jmprieur commented Dec 13, 2018

This is now solved in MSAL.NET 2.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants