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

.Net 5 RC2 - Blazor Wasm - AAD B2C SignUpSignIn catch error 'AADB2C90118' to start Password Reset userflow #27119

Closed
Tracked by #26364
TeguSolutions opened this issue Oct 22, 2020 · 9 comments
Labels
affected-few This issue impacts only small number of customers area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly feature-blazor-wasm-auth severity-minor This label is used by an internal tool
Milestone

Comments

@TeguSolutions
Copy link

Hello,

I am working on a Blazor Wasm project. I have just updated the project to the actually latest .Net 5 SDK, because I needed the LoginMode = "Redirect" feature for AAD B2C.
The AAD B2C is correctly set up and working from Azure and from the app as well.
The used userflows are:

  • Sign up and sign in (Recommended)
  • Password reset (Recommended)

But I would like to initiate the password reset from the signup/signin flow. For this I need to catch the 'AADB2C90118' error message as I read, although the Authentication component is not triggered at all, meanwhile the expected response is visible for a moment. After some redirects the signup/signin page is shown again,

The used packages are:
Microsoft.AspNetCore.Components.WebAssembly - 5.0.0-rc.2.20475.5
Microsoft.AspNetCore.Components.WebAssembly.DevServer - 5.0.0-rc.2.20475.5
Microsoft.Authentication.WebAssembly.Msal - 5.0.0-rc.2.20475.5
Microsoft.Extensions.Http - 5.0.0-rc.2.20475.5
System.Net.Http.Json - 5.0.0-rc.2.20475.5

The Blazor app is .Net hosted with the server app, although it is not relevant because I am running without it.

The related stackoverflow question is:
https://stackoverflow.com/questions/64446655/blazor-wasm-with-aad-b2c-signupsignin-userflow-reset-password-how-to-catch-a

Can you please check it and give me feedback, that it should work, or it is a bad approach from me?

@javiercn
Copy link
Member

@Satukan thanks for contacting us.

This is not a feature we support at the time, since there isn't/wasn't msal support for it at the time. We might consider supporting this in the future if we hear more feedback about it.

@javiercn javiercn added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Oct 23, 2020
@TeguSolutions
Copy link
Author

Alright, I understand and the status is clear.
Thank you.

@javiercn javiercn reopened this Oct 23, 2020
@javiercn javiercn added this to the Backlog milestone Oct 23, 2020
@ghost
Copy link

ghost commented Oct 23, 2020

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@javiercn
Copy link
Member

@Satukan I'm keeping this open so that we can consider it on our planning process for the next release

@SteveSandersonMS SteveSandersonMS added affected-few This issue impacts only small number of customers enhancement This issue represents an ask for new feature or an enhancement to an existing one severity-minor This label is used by an internal tool labels Nov 6, 2020 — with ASP.NET Core Issue Ranking
@HMoen
Copy link

HMoen commented Dec 3, 2020

@TeguSolutions, we are sticking to the "Standard" user flows and the redirect (instead of popup) login mode for our app (WASM backed by API management) per #23638 until the next major release which will hopefully address this.

@morganc9
Copy link

morganc9 commented Dec 6, 2020

Hello,
I need this feature as well... Can't see how I could use B2C in my blazor app if my users can't reset their password whenever they forget it.

@AlbertoPa
Copy link

@Satukan I'm keeping this open so that we can consider it on our planning process for the next release

Just a note: the msal library has been upgraded in 5.0.3: #29226

@AlbertoPa
Copy link

This seems obsolete because AD B2C implemented self-service password reset, which is entirely done via the AD page.

@javiercn
Copy link
Member

This is not needed. See Set up a password reset flow - Azure AD B2C | Microsoft Docs for details

@ghost ghost locked as resolved and limited conversation to collaborators Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affected-few This issue impacts only small number of customers area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly feature-blazor-wasm-auth severity-minor This label is used by an internal tool
Projects
None yet
Development

No branches or pull requests

6 participants