How to Manage User Access in NestJS | Authorization with CASL

Опубликовано: 12 Февраль 2022
на канале: Marius Espejo
45,003
1k

In this video we'll take a deep dive into integrating CASL (authorization ABAC library) into the popular NestJS framework. We'll walk through how to define abilities, how to check a user's access, how to create a custom decorator and guard, and more!

CASL Fundamentals:    • Is this the best NodeJS Authorization Libr...  
Basic Authorization and Guards in NestJS:    • NestJS Authorization: RBAC, ABAC,  claims-...  
Authentication patterns with NestJS:
REST:    • NestJS Authentication: JWTs, Sessions, log...  
GraphQL:    • GraphQL Authentication: JWT, login, signup...  

00:00 - Intro
01:05 - Setup
05:06 - Ability Factory
15:10 - How to check user access
18:15 - Utilizing ForbiddenError class and custom messages
23:50 - Additional conditions
32:02 - Custom Decorator
34:04 - Abilities Guard
39:24 - Reusable metadata
41:13 - Global Guard
42:45 - Fields
44:40 - Alternative decorator API
45:47 - Wrap up


Смотрите видео How to Manage User Access in NestJS | Authorization with CASL онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Marius Espejo 12 Февраль 2022. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 45,003 раз и оно понравилось 1 тысяч посетителям.