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.

B2C password reset fails for confidential client not configured to support implicit flow

See original GitHub issue

Which version of Microsoft Identity Web are you using? Note that to get help, you need to run the latest version. Microsoft Identity Web 1.2.0

Where is the issue?

  • Web app
    • Sign-in users
    • Sign-in users and call web APIs
  • Web API
    • Protected web APIs (validating tokens)
    • Protected web APIs (validating scopes)
    • Protected web APIs call downstream web APIs
  • Token cache serialization
    • In-memory caches
    • Session caches
    • Distributed caches
  • Other (please describe)

Is this a new or an existing app? App under development

Repro

  • Configure an application in B2C which does not support implicit flow
  • Use dotnet new webapp --auth IndividualB2C to scaffold app, updating package references to 1.2.0
  • Configure with B2C application defined above (clientId and secret)
  • include <a href="/MicrosoftIdentity/Account/signin/OpenIdConnect">Sign In</a> in index.html
  • Set logging at Debug level
  • Run app and click link
  • Click `Forgot Your Password?

Expected behavior The B2C Reset Password screen

Actual behavior Debug output reporting error: 'unauthorized_client', error_description: 'AADB2C90057: The provided application is not configured to allow the 'OAuth' Implicit flow.

Possible solution

  • The problem is that the authorize call to the password reset policy includes id_token in ResponseType, whereas the signupsignin policy does not.

  • Enabling implicit flow does provide a workaround, but this is undesirable given that that the implicit flow is disappearing.

Additional context / logs / screenshots Add any other context about the problem here, such as logs and screenshots.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:21

github_iconTop GitHub Comments

1reaction
rollandjbcommented, Dec 1, 2020

@jmprieur No need to reopen.

1reaction
jmprieurcommented, Nov 12, 2020

@jennyf19 proposing to fix this one. In the OnRedirectToIdentityProvider callback we should change the test to use code when the IssuerAddress.Contains(microsoftIdentityOptions.ResetPasswordPolicyId)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error code reference - Azure AD B2C
Error code Message Notes AADB2C90002 The CORS resource '' returned a 404 not found. Hosting the page cont... AADB2C90010 The request does not contain a...
Read more >
Azure AD B2C error AADB2C90057 when I am NOT trying ...
I am using ASP.NET Core 3.1, and Azure AD B2C. My goal is to use the Authorization Code Flow for my whole web...
Read more >
Set up a resource owner password credentials flow - Azure ...
In Azure Active Directory B2C (Azure AD B2C), the resource owner password credentials (ROPC) flow is an OAuth standard authentication flow.
Read more >
Azure Active Directory (AD) B2C Configuration - Auth Connect
Navigate to the User flows (policies) page, then click the "New user flow" button. Next, select the "Password reset" user flow type. As...
Read more >
Using MSAL angular to authenticate a user against azure ...
Before, I was using oid-client to authenticate users against our azure ADB2C tenant using the implicit flow. To use Authorization code flow with ......
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