You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AddBlazorServerAccessTokenManagement extension method in Duende.AccessTokenManagement registers an IUserTokenStore implementation as a singleton. This doesn't work in the Duende.Bff.Blazor, because the its implementation of the store (ServerSideTokenStore) has a dependency on the AuthenticationStateProvider, which can't be resolved in a singleton context.
Instead, we should fix AccessTokenManagement to register the type parameter as Scoped. I think it would be ok to release that as a patch release, as this is pretty clearly a bug.
The text was updated successfully, but these errors were encountered:
The
AddBlazorServerAccessTokenManagement
extension method in Duende.AccessTokenManagement registers anIUserTokenStore
implementation as a singleton. This doesn't work in the Duende.Bff.Blazor, because the its implementation of the store (ServerSideTokenStore
) has a dependency on theAuthenticationStateProvider
, which can't be resolved in a singleton context.Right now, we have this workaround:
Instead, we should fix AccessTokenManagement to register the type parameter as Scoped. I think it would be ok to release that as a patch release, as this is pretty clearly a bug.
The text was updated successfully, but these errors were encountered: