JWT Authentication full example | ASP.NET Core JWT Authentication tutorial 5

Опубликовано: 30 Сентябрь 2024
на канале: Code with Saar
3,459
94

Build a ASP.NET Core WebAPI with JWT Authentication, from database design up to API implementations and run it end to end with Postman.
This is the 5th video on this topic, it demos how to create a JWT auth protected WebAPI from scratch.

For more videos like this:
💡Subscribe: https://www.youtube.com/c/CodewithSaa...

Find the source code in GitHub: https://github.com/xiaomi7732/CodeWit...

Playlist for all JWT:    • Topic: JWT Authentication  

Content:

00:00 Intro
01:05 System Module Overview
01:51 Design the database
03:14 Database implementation
08:04 Design the services
09:14 Implement the services - UserDBBase
10:00 Implement the services - UserService
14:10 Design the RESTful APIs
15:33 Implement the controllers - UsersController
19:42 Register services & Start debugging UsersController
21:58 Refactor TokenController - TokenService
30:43 Run code to test the /token route
31:15 Protect WebAPI with Authorize attributes for various roles
32:23 Testing end to end scenarios
35:12 Ending

Thanks for watching!