I would like this setup so there is no user login, however as long as they are using a windows account that is part of the right group they can access the parts of the website that are setup for that group.Īs of right now the only thing I need to secure is a Web API, however in the future there will be a front end to secure as well (possibly Blazor).Ĭan anybody point me to a tutorial on implementing this or tell me how to set this up?Īccording to the description, I suggest you could create a claim transfer class to query the role and add it to the claims when using the windows authentication. Now that this is implemented, I can't seem to find where I would specify which users are allowed to access the website. Options.FallbackPolicy = options.DefaultPolicy AddAuthentication(NegotiateDefaults.AuthenticationScheme) Var builder = WebApplication.CreateBuilder(args) I can't find any good videos on the topic and plan to make one once I finish this project.Īnd implemented this code: using I am looking for some help implementing Windows authentication / authorization in.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |