Skip to content
Discussion options

You must be logged in to vote

I am unsure for that attribute.

My recommendation is to to use the AspNetCore hosting and setup authentication and authorization so that you can use the aspnetcore attributes/configuration to handle authorization requirements, that way you can easily allow anonymous access for just a few endpoints (just make sure that submit requires authorization by requiring authorization on top/domainservice level).

Example using attributes can be found on https://learn.microsoft.com/en-us/aspnet/core/security/authorization/simple?view=aspnetcore-7.0

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Daniel-Svensson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants