DavidParks8 / Owin-Authorization

Backport of Asp.Net core's policy based authorization to Asp.Net 4
Other
60 stars 16 forks source link

Example of a AuthorizationHandler for a resource. #60

Closed schwarzie2478 closed 5 years ago

schwarzie2478 commented 5 years ago

A simple example of showing how to authorize based on a resource being handled inside the method. Next to that, I added swagger as a nice way to test my Api.

I was thinking about an action filter for handling the authorization outside of the method,

DavidParks8 commented 5 years ago

Please create a new project for the example (to keep the existing samples simple and targeted).