Implement JWT authentication in ASP.NET Core minimal APIs

In the previous part of this article series we learned to integrate Swagger with ASP.NET Core minimal APIs. So far we created minimal APIs for performing CRUD operations. Now it's time to add authentication and authorization to the minimal APIs. As with controller based APIs the most common approach to implement authentication in minimal APIs is to use JSON Web Token or JWT. To that end this part of this series will cover that and will also tweak Swagger configuration to use JWT while invoking the minimal APIs.

http://binaryintellect.net/articles/082e1b54-86ec-495a-86fb-be260830947c.aspx