Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor Server .NET 8 authorization Dependency Injection User Settings

$
0
0

I have a IUserSettings interface to use between Blazor and a Desktop. I have a task in the interface called Task GetUserSettingsAsync(AuthenticationStateProvider authenticationStateProvider). Once the website comes back from Microsoft Entra, I want to populate user settings. I have a UserSettingService class inheriting from IUserSettings to execute GetUserSettingsAsync. I want to execute a query in GetUserSettingsAsync to get the users ID from the database. Then I can inject IUserSettings into other classes and have their user ID. What I tried isn't working. IUserSettings doesn't have the user ID.

I can't upload the project. It is huge.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>