This repo is a part of the ASP.NET Core: Custom Authorization Policies With Multiple Requirements article published at https://link.medium.com/FBlQWWfQy4
These steps follow the steps to run the demo application with Visual Studio 2019 but you can always build and run it with the console in any environment.
- Clone the repository
- Open the solution with Visual Studio 2019
- Run the application with Ctrl+F5
- Check the following links:
- http://localhost:50001/weatherforecast/or - Multiple requirements in a single attribute, all valid.
- http://localhost:50001/weatherforecast/or/partial - Multiple requirements in a single attribute, some valid.
- http://localhost:50001/weatherforecast/or/fail - Multiple requirements in a single attribute, all invalid.
- http://localhost:50001/weatherforecast/and - Multiple requirements in multiple attributes, all valid.
- http://localhost:50001/weatherforecast/and/fail - Multiple requirements in multiple attributes, some valid or all invalid.
- http://localhost:50001/weatherforecast/empty - Empty attribute with no requirements.