ASP.NET Core policy-based authorisation using JSON Web Tokens

Introduction In this post, I am going to demonstrate how JSON Web Tokens (JWTs) can be used in conjunction with ASP.NET Core's new policy-based authorisation model to easily control user access to your Web API controllers and methods. Note: this is a very long tutorial so if you are comfortable working through source code and figuring things out for yourself … Continue reading ASP.NET Core policy-based authorisation using JSON Web Tokens

Issuing and authenticating JWT tokens in ASP.NET Core WebAPI – Part II

Big, important announcement regarding ASP.NET Core 2.0 - This tutorial covers requirements for ASP.NET Core 1.x. The principles remain the same, but the implementation is definitely different. If you are interested in seeing what changed between the setup for Core 1.x and Core 2.0, please look at this PR by Nico Jansen on the demo … Continue reading Issuing and authenticating JWT tokens in ASP.NET Core WebAPI – Part II

Issuing and authenticating JWT tokens in ASP.NET Core WebAPI – Part I

Big, important announcement regarding ASP.NET Core 2.0 - This tutorial covers requirements for ASP.NET Core 1.x. The principles remain the same, but the implementation is definitely different. If you are interested in seeing what changed between the setup for Core 1.x and Core 2.0, please look at this PR by Nico Jansen on the demo … Continue reading Issuing and authenticating JWT tokens in ASP.NET Core WebAPI – Part I