Scopes & Permissions

Available Scopes

  • user: Standard user access

  • admin: Administrative access

Scope-Based Authorization

Endpoints can require specific scopes using FastAPI dependencies.

Implementing Custom Scopes

New scopes can be added by:

  1. Adding to user model

  2. Updating JWT generation

  3. Creating new dependency functions