filmov
tv
.NET 7 Web API 🔒 JWT Authentication and role-based Authorization
Показать описание
#aspdotnetcore #dotnet #jwt
A step-by-step guide to user authentication using ASP.NET Core 7, Identity, MSSQL
Create a minimal API project in Visual Studio 2022.
🚀 Table of Contents:
✅ 1. Create Project: Using Visual Studio 2022
- API Project, Dotnet 7.0, and a class library project for data connectivity and migration
✅ 2. Install the Required Packages
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer --version 7.0.4
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 7.0.4
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 7.0.4
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 7.0.4
✅ 4. Create models and complete ApplicationDbContext class
✅ 6. Database Migration
dotnet ef migrations add InitialCreate
dotnet ef database update
-- using PMC
PM: add-migration initcreate
PM: update-database
✅ 7. Create Auth Controller
✅ 8. Crete Auth Service
✅ 9. Test API using postman
✅ 10. Deploy to IIS
✅ 11. Test API from IIS hosting
🚀 My Profile:
✅ Business ERP Solution/Product/POS/Company Management:
✅ School/College/University Management ERP:
✅ Dashboard Template | ASP.NET Core MVC Web Starter Kit
✅ Advance POS System with Stock Manager | ASP.NET Core | EF Core | .NET Core 6.0:
✅ Asset Management System with Barcode | ASP.NET Core | EF Core | .NET Core 6.0:
✅ Advanced Files & Users Management | ASP.NET Core | EF Core | .NET Core | MSSQL | MySQL:
✅ Hospital and Pharmacy Management System | ASP.NET Core | EF Core:
✅ Inventory and User Management System:
✅ Invoice Gen(Invoice Generation and Management) using .Net Core and EF:
✅ Complaint | Issue | Helpdesk Ticket | My Ticket HelpDesk Support System | ASP.NET Core | EF Core:
✅ User Management:
✅ ASP.NET Core CRUD Operation Using Dot Net 6.0 | MVC| MSSQL | MySQL | EF Core Code First | jQuery
✅ ASP.NET Core full CRUD with .NET 5 | MSSQL/MySQL | EF code first:
✅ Staff | Employee Leave Management System
✅ Library Management System | ASP.NET Core | MSSQL | Code First
A step-by-step guide to user authentication using ASP.NET Core 7, Identity, MSSQL
Create a minimal API project in Visual Studio 2022.
🚀 Table of Contents:
✅ 1. Create Project: Using Visual Studio 2022
- API Project, Dotnet 7.0, and a class library project for data connectivity and migration
✅ 2. Install the Required Packages
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer --version 7.0.4
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore --version 7.0.4
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 7.0.4
dotnet add package Microsoft.EntityFrameworkCore.Tools --version 7.0.4
✅ 4. Create models and complete ApplicationDbContext class
✅ 6. Database Migration
dotnet ef migrations add InitialCreate
dotnet ef database update
-- using PMC
PM: add-migration initcreate
PM: update-database
✅ 7. Create Auth Controller
✅ 8. Crete Auth Service
✅ 9. Test API using postman
✅ 10. Deploy to IIS
✅ 11. Test API from IIS hosting
🚀 My Profile:
✅ Business ERP Solution/Product/POS/Company Management:
✅ School/College/University Management ERP:
✅ Dashboard Template | ASP.NET Core MVC Web Starter Kit
✅ Advance POS System with Stock Manager | ASP.NET Core | EF Core | .NET Core 6.0:
✅ Asset Management System with Barcode | ASP.NET Core | EF Core | .NET Core 6.0:
✅ Advanced Files & Users Management | ASP.NET Core | EF Core | .NET Core | MSSQL | MySQL:
✅ Hospital and Pharmacy Management System | ASP.NET Core | EF Core:
✅ Inventory and User Management System:
✅ Invoice Gen(Invoice Generation and Management) using .Net Core and EF:
✅ Complaint | Issue | Helpdesk Ticket | My Ticket HelpDesk Support System | ASP.NET Core | EF Core:
✅ User Management:
✅ ASP.NET Core CRUD Operation Using Dot Net 6.0 | MVC| MSSQL | MySQL | EF Core Code First | jQuery
✅ ASP.NET Core full CRUD with .NET 5 | MSSQL/MySQL | EF code first:
✅ Staff | Employee Leave Management System
✅ Library Management System | ASP.NET Core | MSSQL | Code First
Комментарии