Skip to content

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

@TeguSolutions

Description

@TeguSolutions

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    affected-fewThis issue impacts only small number of customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyfeature-blazor-wasm-authseverity-minorThis label is used by an internal tool

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions