Join this channel to get source code access and other perks:
/ @codewrinkles
Authentication and Authorization in an ASP.NET Core WebAPI using JWT Bearer is something many people fear, because it seems very complicated. Not anymore! This video is your ultimate guide to ASP.NET Core Authentication and Authorization. We'll understand how to leverage the power of Microsoft AspNet Core Identity and the default authorization engine by implementing our own authentication endpoint. While doing this we'll understand how to generate JWTs in .NET, how can we work and persist claims and roles, so that we can use them for authorization purposes. Last but not least, we'll see how easy it is to perform role based authoirzation in ASP.NET Core.
Content:
1. Intro: 00:00
2. JWT settings: 02:40
3. Options Pattern: 04:38
4. Generating JWTs: 05:56
5. IdentityDbContext: 08:45
6. Configuring JWT Authentication: 10:35
7. Configure Auth in Swagger: 15:31
8. User registration: 17:23
9. User login: 23:35
10. Role-based authorization: 25:49
11. Testing it all out: 28:00