Role-Based Access Control Using Dependency Injection (Add User Roles)
Ssali Jonathan

Ssali Jonathan @jod35

About: I am a software engineer who learns, codes, and teaches others what I learn. Check out my YouTube channel at https://www.youtube.com/c/SsaliJonathan/

Location:
Kampala Uganda
Joined:
Apr 14, 2020

Role-Based Access Control Using Dependency Injection (Add User Roles)

Publish Date: Jun 24 '24
0 0

In this video, we’re setting up role-based access control for our FastAPI project. Role-based access control control allows users to perform actions in an application basing on their role.

We create roles for users and admins, and then check these roles for every API endpoint. This way, we protect our API endpoints so only users with the right role can do certain things. We use dependency injection to implement this.

Comments 0 total

    Add comment