Blazorade / Blazorade-MSAL

A Blazor component library that makes it easy to use authentication in your application through MSAL, both in Blazor Server and Blazor WebAssembly applications.
MIT License
17 stars 5 forks source link

Cancelling the login process not properly handled #3

Closed MikaBerglund closed 3 years ago

MikaBerglund commented 3 years ago

When using the popup mode to log in or consent to new scopes requested by the application, and the user cancels that dialog by either closing the dialog or pressing the Cancel button, the cancelling is not properly handled by Blazorade MSAL, and the application becomes unresponsive.

Steps to reproduce 1:

  1. Make sure you are logged out from the application
  2. Init the login process by acquiring one or more scopes
  3. Close the login dialog without logging in.

Steps to reproduce 2:

  1. Log in to the application by acquiring one or more scopes
  2. Acquire an additional scope that has not yet been consented to
  3. Cancel the process by closing the dialog or pressing the Cancel button

Sometimes you have to perform these steps two or more times before the application hangs.

MikaBerglund commented 3 years ago

Seems that this is a problem only when running the sample apps locally in debug mode in Visual Studio. Have to look into this a bit more still.