-
Notifications
You must be signed in to change notification settings - Fork 5
Problem with LoginRedirectHandler component #27
Comments
Now I get the following
This is when I try to call |
Thanks for reporting! I'll start looking into this. Just a few initial questions:
|
No error. The wasm example is working fine |
If I skip the This in
And changed redirect uri in Azure app to But it feels like you could end up in a redirect loop with this solution. If |
I remember having similar issues when I was working on the sample applications. I just can't remember what those issues exactly were. I'll see if I can repro your problem with your original setup. Blazorade MSAL should definitely work with both server and WASM applications, and both redirect and popup interaction modes. Personally, I prefer the popup mode, because the user does not lose the context as easily as might happen when redirecting back and forth. Still, redirecting is fully supported in MSAL, so it should be fully supported also in Blazorade MSAL. I'll look into this. |
net6
v2.1.0
and2.2.0
ofBlazoradeMsal
Expected authentication flow:
MainLayout
withAcquireTokenAsync
https://localhost:5001/signin-redirect
OnLoginSucceeded
navigate to startpageOnLoginFailed
show errorI'm using the
LoginRedirectHandler
component on my redirect uri in my application. In my casehttps://localhost:5001/signin-redirect
. When I add theLoginRedirectHandler
to that page i seems to process the redirect data from Azure AD but it doesn't get theOnLoginSucceeded
or theOnLoginFailed
event. It just process the query data from the provider and stops. Without errors.The login is succesful because I have all the token information in my local storage.
If I try to use the
HandleRedirectPromiseAsync
in mysignin-redirect
page it doesnt seem to process the provider data from the redirect.Or sometimes end up in a redirect loop with a error message saying that you couldnt be logged in.
The text was updated successfully, but these errors were encountered: