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

Опубликовано: 10 Август 2022
на канале: 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


Смотрите видео Role Based Authorization In .Net 6 API With JWT (Json Web Tokens) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Israel Quiroz 10 Август 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,464 раз и оно понравилось 89 людям.