Role Based Authorization In .Net 6 API With JWT (Json Web Tokens)

Published: 10 August 2022
on channel: Israel Quiroz
3,464
89

Role Based Authorization In .Net 6 API With JWT

Role based authorization is a very common form of restricting access to accounts based on a simple term. It can be extremely effective in exposing only the resources necessary to that specific role. Roles can be added into the claims when creating the Json Web Token upon logging in and then used throughout the duration of the session or until the token expires. This project will add on to the project we created when showing how to add JWT authentication into a .net 6 api. The code for that project is below.

Github Project Code: https://github.com/israelquiroz93/JWT...

Support Me On Patreon:   / israelquiroz  
Follow Me On TikTok: https://www.tiktok.com/@israelquiroz9...
All My Links Here: https://linktr.ee/israelquiroz

#RoleBasedAuthorizationInDotNet6Api #jwt #JwtRoleBasedAuthorizationDotNet6

Timestamps
----------------------------
00:00 Intro
00:18 Role Based Authentication Explained
02:01 Going Over The Current API Code
04:23 Adjusting Our Models For Account Roles
05:55 Adding Roles To Our JWT
08:03 Adding Role Auth To Our Class/Method
09:14 Testing Role Authentication In The API
13:48 Explaining The Role Based Authorize Attributes


Watch video Role Based Authorization In .Net 6 API With JWT (Json Web Tokens) online without registration, duration hours minute second in high quality. This video was added by user Israel Quiroz 10 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,464 once and liked it 89 people.