ASP .NET Core 5 Web API - Role based Authorization with Angular | Role Claim with JWT Token

preview_player
Показать описание
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

Microsoft Documentation Link - Role-based authorization in ASP.NET Core

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

Part 2
ASP .NET Core 5 Web API - Role based Authorization with Angular, Video link given below

.NET core 5 project URL
Angular Project

#NETCore5 #Angular #MicrosoftIdentity #jwt #tokenbasedauthentication #net5 #netcore #angular #entityframeworkcore #aspnet5 #RolebasedAuthorization
Рекомендации по теме
Комментарии
Автор

Plzz make video using claim based authentication

nidhishukla
Автор

One query bro my role data is not passing through radio button into registeruser API so when I debug there is role =null so it's returning roles are missing

dirghayuraval
Автор

How can i get loggedin user id, everytime i try it with httpcontext in a function other than login i get null

maleksmaoui
Автор

Hello. I have finished the ASP .NET Core 5 Web API - [Role based Authorization with Angular|RoleClaim with JWT Token] video via Youtube. First it was working, then I get the following error. What is the answer and solution to this error?

I can do all the operations through Postman.

Error: net: :ERR_CERT_AUTHORITY_INVALID

gazihatas
Автор

In this video you will see Window 8 like Spinner,
if you like this video please subscribe my channel thanks

DevBugFix
visit shbcf.ru