ASP.NET JWT Authentication and Role-Based Authorization | ASP.NET WebAPI jwt authentication in .net 7 | Register | Login | Identity
📝 Completed codes: [ Ссылка ]
JWT(Json Web Token) is one of the most popular ways to implement authentication and role-based authorization in WebAPI Projects. It uses claims and manage your security.
In this video, we create a new .Net 7 WebAPI project from scratch and implement Fully authentication and authorization in it. We use these packages:
- "Microsoft.AspNetCore.Authentication.JwtBearer"
- "Microsoft.AspNetCore.Identity.EntityFrameworkCore"
- "Microsoft.EntityFrameworkCore.SqlServer"
- "Microsoft.EntityFrameworkCore.Tools"
Link to that packages:
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
We also cover a lot of features and techniques like:
Dtos
Static classes
Entities
Dependency injection
Refactoring
Git branches
Pull request
Identity Package
Custom User fields
🔍 sections
- (00:00:00) Intro
- (00:03:43) Demo
- (00:13:57) GitHub Repository
- (00:15:12) Section 1: Start Implementing
- (01:43:18) Section 2: Refactor User
- (02:00:46) Section 3: Refactor Controller, Interface, Service and DI
🌎 Me:
Telegram: [ Ссылка ]
LinkedIn: [ Ссылка ]
GitHub: [ Ссылка ]
Medium: [ Ссылка ]
Portfolio: [ Ссылка ]
💖 Hope you enjoy it 💖
💖 If you loved this ASP.NET 7 JWT Authentication and Role-Based Authorization | ASP.NET Web API tutorial, leave comments, like, and subscribe 💖
💖 You can Buy me a coffee to support: [ Ссылка ] 💖
Disclaimer: This video is just a YouTube tutorial for beginners and it is not a commercial code. Use these Codes and functions on your responsibilities. Don’t forget that security is very important in any software and website and you must be aware of any functionality of codes of your projects.
Tags:
#dotnet
#dotnet7
#dotnetapi
#aspnetcore
#webapi
#github
#project
#backend
#entityframework
#entityframeworkcore
#authentication
#authorization
#jwt
#identity
Ещё видео!