Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 745 Bytes

File metadata and controls

9 lines (6 loc) · 745 Bytes

aspnet-core-webapi-jwt-auth-example

An example of how you can issue JWT tokens with ASP.NET Core 1, authenticate a user with the tokens issued and restrict access to controller methods based on user claims using ASP.NET Core MVC's policy features in a Web API project.

Discussion

The code in this example is discussed as a series of blog posts.

Part I addresses how JSON Web Token can be configured and issued. Part II covers the authorisation aspects focusing on user claims using ASP.NET Core MVC’s policy features.