-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
Describe the bug
The Blazor WASM AuthorizationMessageHandler
stores the last AccessToken and will update it only if the AccessToken will expire in less than 5 minutes. If the user changes in between the old access token will still be used. Related code:
Line 53 in 6e0fd83
if (_lastToken == null || now >= _lastToken.Expires.AddMinutes(-5)) |
The AuthorizationMessageHandler
should react to the AuthenticationStateChanged
of the AuthenticationStateProvider
and remove the last cached token.
To Reproduce
Log in to a Blazor WASM application that uses the AuthorizationMessageHandler
, log out and log in with another user. The access token from the first user will be used.
Further technical details
- All Blazor WASM versions
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.