ASP.NET 7 JWT Authentication and Role-Based Authorization | ASP.NET Web API
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 formatsNo download links available.