Contains simple JWT implementation, with MiddleWare to validate the caller
Use the Index.html file in wwwroot folder to test JWT.
GetToken fetches a token from the Token Controller.
T test the JWT tken call the Values Controller wich contains the Authorise attribute
Visual Studio 2017, DOT NET CORE 2 SDK
Clone the repository, open the solution file DotNetCoreJwt Nuget will restore the packages automatically
There is built in error handling Middleware this traps error in the delegate next, its purpose is to help find any errors in middleware
See AuthorizeMiddleWare.cs, also check tne comments in the startup to place it correctly in the pipeline
Logging standard dot net core logging is registerd in Program.cs see Token controller for an instance of logger
Uese Swagger, go to api/swagger for API doc's
The project uses XUNIT, testrunner is included.
TODO
TODO
TODO
- DOT NET CORE2 - The web framework used
Feel Free to do a pull request
- Sajid Rashid - Initial work
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used