ASP.NET 7 JWT Authentication and Role-Based Authorization | ASP.NET Web API

preview_player
Показать описание
ASP.NET JWT Authentication and Role-Based Authorization | ASP.NET WebAPI jwt authentication in .net 7 | Register | Login | Identity

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:

💖 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 💖

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
Рекомендации по теме
Комментарии
Автор

If You want to see how we use JWT in a real-world full-stack project, watch this tutorial:

DevEmpower
Автор

Thank you so much mohammad for providing such quality content in youtube.Really appreciates your effort.

deanambrox
Автор

thank you, very clear and able to replicate at .net 8

enricoroselino
Автор

I wish you more subscribers.It's worth it )

serg
Автор

what a nice project and nice explanation. I have learned many things from your videos. i accidentally got suggested this and its worth a lot to me. i hope you will post many videos like this. underrated content

sandakelumhalkewela
Автор

very nice explanation that show your depth experience. thank you sir

MuhammadShahid-ztck
Автор

Very Informational video, please add video to how to use this in CRUD APIs.

karthikshetty
Автор

muchas gracias por este contenido, es lo mejor

javierviloriatovar
Автор

how can we use this login method in another mvc application ? i mean for the admin panel

TheEarthRevealed
Автор

Very nice and well explained tutorial, everything at one place. Out of context can you please let me know which theme you are using for google chrome, the Arabic once. I really like it.

FahadKhan-fqzw
Автор

This is an informative video, and it is very detailed. But what of the logout part.

dancanakutuya
Автор

I need to see how you made the database

kalixgz
Автор

pls can you add refresh token to this project I think it will help a lot

MohamedRamzy-ub
Автор

thanks for this awesome video . please add refresh token and change password also in future play list if you get time.

khalidsultani
Автор

Good one where users Roles Defined when register the users?

jayakumar
Автор

It would be great if you showed the implementation of the frontend.

stewieshka
Автор

i am getting 401 unauthorised in postman after testing my token? My code is like yours

PeterMadz-cuel
Автор

Can you make full e-commerce API with jwt

kei-T
Автор

من خودم زبانم خوب نیست ولی پیشنهاد می کنم رو زبانت بیشتر کار کن .

mahdi
visit shbcf.ru