How to implement Authorization in the Application Level (Clean Architecture)

Published: 20 November 2022
on channel: Spyros Katsios
2,224
58

How to implement Authorization in the Application Level of an api that is built with clean architecture, using jwt and mediator's pipelines.

Source Code: https://github.com/spyroskatsios/Yout...

Chapters:

00:00 Solution Overview
03:46 Creating an enum for the roles
05:28 Creating an Authorize Attribute
06:25 Implementing Authorization
16:05 Creating a Forbidden Exception
17:51 Exception Middleware
19:08 Decorating our queries
19:46 Run & Debug