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.

[Bug] Edit Profile is asking user to log in

See original GitHub issue

Which Version of MSAL are you using ? Microsoft.Identity.Client 4.18.0

Platform .NET Standard 2.0, .NET Framework 4.6.1, WPF

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive B2C

Is this a new or existing app? The app is in production but updated MSAL version and changed areas of code and are now re-testing.

Repro

var ar = await pca.AcquireTokenInteractive(this.scopes)
    .WithAccount(account)
    .WithB2CAuthority(AuthB2C.AuthorityEditProfile)
    .WithParentActivityOrWindow(parentActivity)
    .WithPrompt(Prompt.NoPrompt)
    .ExecuteAsync();

Expected behavior If the existing token has been acquired silently then the Window should go directly to the Edit Profile section.

Actual behavior If the existing token has been acquired silently then the UI asks for user to authenticate before proceeding to the Edit Profile section. Note: it works correctly if the current token has been retrieved via AcquireTokenInteractive (i.e. does not ask the user to authenticate).

Additional context/ Logs / Screenshots Previous similar issue: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/505

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jennyf19commented, Sep 11, 2020

@Coder-RKV you can open a new issue w/exactly what the issue is & provide a repro. thanks.

1reaction
jennyf19commented, Sep 9, 2020

@RhomGit not a waste of time at all. we recently did work in a related area, so it was good to triple check we didn’t have any issues there. I really appreciate the repro and quick responses from you. very helpful. if anything else comes up, let us know.

Also, @jmprieur and I realized this is not very well documented, not from us, nor B2C, so something we can improve for sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Possible bug in Login/User profile - Ask for Help
The user already exists in the user profile. Allow user to edit is not on. It is not a Google account. I have...
Read more >
Fix a corrupted user profile in Windows
Learn what to do if you get a message telling you that your user profile is corrupted. ... Restart the PC, then sign...
Read more >
Bug : Role change in profile form by administrator
Hi,. There is a new bug (certainly created with October 6 Update – Fixed security patch for role change via profile form). I...
Read more >
Bug: Edit User Profile
I can access the "Edit User Profile" page. The page content also looks normal. However, the page does not respect the template settings....
Read more >
Bug with "Login as user" functionality
I deployed a change over the weekend and discovered that I could not "Login as user" to verify the change.
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