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.

Angular msal 2.0 forgot password did not work

See original GitHub issue

Library

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.x.x
  • @azure/msal-node@1.x.x
  • @azure/msal-react@1.x.x
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angular@2.x.x
  • @azure/msal-angularjs@1.x.x

Description

I have tried angular 11 b2c project which you provided. I have used same credentials which you provided in sample but forgot password is not working. it redirecting to login page itself.

I have also tried with my credentials but it redirecting to change password instead of redirecting to forgot password.

Source

 let resetPasswordFlowRequest = {
            scopes: ["openid","profile"], // I have tried with openid
    authority: environment.b2cPasswordReset,
  }
  this.msal.loginRedirect(resetPasswordFlowRequest);

same b2cPasswordReset url is working in msal 1.0 but not working in msal2.0

@jo-arroyo could you please let me know if I am doing something wrong.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jitendraP-ashuteccommented, Feb 12, 2021

I was using wrong wrong url in password resetting so that its was not working.

Thanks @jo-arroyo

0reactions
github-actions[bot]commented, Feb 12, 2021

This issue has been closed due to inactivity. If this has not been resolved please open a new issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

MSAL Angular 7: Password Reset Implementation
After password reset the user is directed back to app.component which then calls loginRedirect() to display the login form. On return to the...
Read more >
Implement a 'Password Reset' with JavaScript and Azure AD ...
First, we'll register and configure an Azure AD B2C app registration so that we can authenticate and manage users in our JavaScript application....
Read more >
Set up a password reset flow - Azure AD B2C - Microsoft Learn
Tip. A user can change their password by using the self-service password reset flow if they forget their password and want to reset...
Read more >
Integrate Azure AD B2C reset password user flow in angular ...
The sign up and sign in user flow has the Forgot Password link which the user can click on to reset the password....
Read more >
azure/msal-angular - npm
The latest @azure/msal-angular package does NOT support the implicit flow. Guides. Upgrade Guide (v1-v2) · Upgrade Guide (v0-v1) · Configuration ...
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