This is sample of JWT Validation with ASP.NET Core 2.0. I created for self-study.
- Visual Studio 2017
- ASP.NET Core 2.0
- Chorme/Edge (IE does not support.)
- Clone this repository.
- Open solution.
- Debug and Launch Browser.
- If you input User to
admin
, you will be giveadmin role
. Otherwise you will be giveuser role
. - Click green button, Web API will be inovked. Left button is
admin role
only.
Authentication In An ASP.NET Core API - Part 3: JSON Web Token | Pioneer Code