Making Blazor Server Sider with Auth work with ApiAuthorizationDbContext #29788
Unanswered
marinasundstrom
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Blazor Server Side app in which I have integrated Identity Server for possible use with a Web Api.
My problem is that switching to
ApiAuthorizationDbContext
makes the app not signal to Blazor that the user has been is authenticated.I guess that it is most likely because of the AuthenticationStateProvider not identifying that the auth state has changed.
Another potential thing that might affect the behavior is defining a custom
ApplicationUser
class, which I do.At a whole, I don't know how it works with the standard Identity UI components.
How do I resolve this?
I started from the standard Blazor Sever Side template.
Beta Was this translation helpful? Give feedback.
All reactions