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

Password Reset Flow not working correctly on Blazor WASM Applications #30923

Closed
efonsecab opened this issue Mar 14, 2021 · 2 comments
Closed
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@efonsecab
Copy link

Describe the bug

Some of our customers are using Blazor WASM with Azure AD B2C, Flows, SignInSignUp policies work just fine,
however, when we try to execute the Password Reset flow in the app we see this behavior

  1. After clicking on the forgot password link, we see two subsequent login screens.
  2. After clicking the second screen forgot password link, the flow redirects to the "/authentication/login-failed" page, which as we have read is by design, problem is, we tried to override all of the methods for both the login component and in a Custom Class inheriting from RemoteAuthenticationView and we have not been able to capture the action to continue the flow manually.
    We need a feasible way to solve this issue.

To Reproduce

  1. Follow the steps in here: [Secure an ASP.NET Core Blazor WebAssembly hosted app with Azure Active Directory B2C (https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory-b2c?view=aspnetcore-5.0)
  2. Configure a Password Reset flow in the portal and app
  3. Click the Forgot Password link. The page redirects.
  4. Click the Forgot Password link once again. The flow redirects to the applications with the login-failed action.

We also tried this but did not work:
https://iheartms.azurewebsites.net/2020/04/10/blazor-aad-b2c-additional-user-flows/?fbclid=IwAR0LQn1zeXPY5JIpezJkMtdzmQSkP38PkFzGeFeUM72-pSD1-rvTsR0BWOE

Exceptions (if any)

Further technical details

  • ASP.NET Core version: Blazor on .NET Core 3.1
  • Include the output of dotnet --info
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
@javiercn
Copy link
Member

@efonsecab thanks for contacting us.

We only support sign-in/sign-up policies in our Azure AD and Azure AD B2C support. At release time msal.js didn't support any other flow (and I'm not sure if it currently does)

@javiercn javiercn added area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly labels Mar 15, 2021
@javiercn
Copy link
Member

Closing this issue as a dupe of #27549

@javiercn javiercn added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Mar 15, 2021
@ghost ghost added the Status: Resolved label Mar 15, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components feature-blazor-wasm This issue is related to and / or impacts Blazor WebAssembly ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants