This repository includes two .Net 6 projects.
One project is a simple api gateway which handles the authorisation and authentication.
The second project is a simple authentication service, which includes the following end points:
- Authenticate => this endpoint will return a JWT if the correct login credentials are given
- Get permission-route1 => If you have the role claim 1 you will recieve a response with => You have permission for route 1
- Get permission-route2 => If you have the role claim 2 you will recieve a response with => You have permission for route 2
- Get permission-route3 => If you have the role claim 3 you will recieve a response with => You have permission for route 3
- Import the postman JSON API end-points into postman
- Import the postman JSON ENV values into postman
- Run both applications
- Send a get request to Permission route1 => should receive a 401
- Send a post request to Authenticate => should receive a 200
- Send a get request to Permission route1 => should receive a 200
- Send a get request to Permission route3 => should receive a 403