n_t_in
1
Hi, Is there a way to get the current Windows user in Radzen-Blazor Web assembly?
enchev
2
Although this thread is for Angular the code might be helpful in your case as well:
korchev
3
Doesn't Security.User
contain what you need?
n_t_in
4
This will get the user info of the Application Pool in IIS the website is hosted in.
Is there a way I can get the logged in user of the machine?
n_t_in
5
Is there a sample showing the usage of Security.User to retrieve the info?
enchev
6
Try what @korchev suggested
n_t_in
7
Is there a way to enable Security in Radzen if we are not using Radzen IDE? SecurityService is not being recognized as a class when I try to use it.
enchev
8
See the thread I've posted in my first reply:
n_t_in
9
Is this solution for Blazor Web Assembly? I cannot install the nuget AspNetCore.Authentication.Negotiate in the client project to use the AddAuthentication, it gives the error
" There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'"
korchev
10
If you are not using the Radzen IDE you should look online how to enable Windows security for a Blazor WASM application.
This is beyond the scope of this forum.
n_t_in
11
Thanks, I was able to get this working from the server side and once published to IIS.