1
votes

I have a blazor wasm application that i've integrated with identity server 4. All is well until i try to load up an initial state of the user based on some db assets. This was trivial in pages or mvc where i owned the login page. Now it seems i can either store the assets as claims (which could create hundreds/thousands of claims for the user), or figure out a way to override the login flow to include and additional step.

Unfortunately my google-fu is not on point with this, as i search for "blazor wasm override oidc sign-in" or something similar i get results for setting up blazor + oidc, which i've already done. I tried reading the blazor docs, but i wouldn't be surprised if i missed something, or if it went over my head. If anyone can point me to a doc, or show me the setting / class i'd need to implement/override i'd be very grateful.

Thanks

1

1 Answers

0
votes

How much user data are we talking? You should look into implementing the IPorfileService as outlined here: https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-identity-server?view=aspnetcore-5.0&tabs=visual-studio#profile-service

That will give you the extensibility you are looking for. :)