ASP .NET Core 5 Web API - Role based Authorization with Angular | Role Claim with JWT Token
DevBugFix
This is Step by step tutorial to add Role based Authorization in .NET Core 5 and integration role based authorization in Angular 11
We will secure Web API with JWT token-based Authentication We will use Microsoft identity to Manage users , passwords, profile data, roles, claims, tokens.
we will use Microsoft Identity table to store user's role and add role and to perform operation on Database we will use Microsoft identity service class .i.e UserManager - to manage user in database SignInManager - to sign in RoleManager - to manage user role in database
ASP .NET Core 5 Web API step by step & Integrate in Angular 11 | Secure API with JWT Token and part 1 of this video link is given below https://youtu.be/BIk7PssaDe8
Microsoft Documentation Link - Role-based authorization in ASP.NET Core https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-5.0
Tools we will use ASP .NET Core 5 Dot NET CLI Entity framework Core for Sql Server Microsoft Identity for Authentication, Authorization & User Management Visual Studio Code Postman to Test API Angular 11 Angular CLI Bootstrap for UI
- 00:03 Intro
- 00:36 Authentication vs Authorization
- 01:09 What is Role based Authorization
- 01:45 Microsoft Identity database schema overview for role
- 02:17 App Demo
- 03:06 Set Default authentication scheme in startup
Back-end Project in .NET Core 5
- 04:47 API method to Add Role in database
- 12:29 Assign Role to user in Add user API method
- 14:55 Modified GetUserList API return role from it
- 17:50 API that return user that role type "User"
- 19:34 Add Role claim in JWT Token
- 23:09 Get User's role from database using API
Front-end Project in Angular 11 00:23:42 Role based Authorization Integration in Angular
Part 1 ASP .NET Core 5 Web API step by step & Integrate in Angular 11 | Secure API with JWT Token video link is given below https://youtu.be/BIk7PssaDe8
Part 2 ASP .NET Core 5 Web API - Role based Authorization with Angular, Video link given below https://youtu.be/8RtzxlsBLlU
#NETCore5 #Angular #MicrosoftIdentity #jwt #tokenbasedauthentication #net5 #netcore #angular #entityframeworkcore #aspnet5 #RolebasedAuthorization ... https://www.youtube.com/watch?v=8RtzxlsBLlU
368764543 Bytes