I already have a ready server on Asp.net WebApi. How can I add authorization to it? I looked through many articles, but everywhere a new project is created and the authorization method is selected there, but I did not find how to add to the existing one.
1 Answer
You may want to implement Authorize attribute and decorate each of your API with the same. The authorize attribute gets hit before proceeding to your API logic and you can have your custom logic to check if the caller has the Authorization to access the API.
3 Comments
Евгений
it looks like it's not that
Raju Dasupally
Are you looking for Authorization or Authentication? You mentioned Authorization in the question description
Евгений
I am looking for how to add to an existing Authentication project

