Back to Browse

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

22.0K views
Apr 2, 2023
2:37:48

ASP.NET JWT Authentication and Role-Based Authorization | ASP.NET WebAPI jwt authentication in .net 7 | Register | Login | Identity πŸ“ Completed codes: https://github.com/mohammad-taheri1/YouTube-JwtAuthAspNet7WebAPI 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: https://www.nuget.org/packages/Microsoft.AspNetCore.Authentication.JwtBearer https://www.nuget.org/packages/Microsoft.AspNetCore.Identity.EntityFrameworkCore https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.SqlServer https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Tools 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: https://t.me/DevEmpower LinkedIn: https://www.linkedin.com/in/mohammad-taheri1 GitHub: https://github.com/mohammad-taheri1 Medium: https://medium.com/@DevEmpower Portfolio: https://devempower.ir/ πŸ’– 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: https://www.buymeacoffee.com/DevEmpower πŸ’– 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

Download

0 formats

No download links available.

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