Authentication

Authentication and authorization infrastructure including JWT handling, OAuth, and session management.

Module Contents

JWT Authentication

Guards

Route guards for protecting endpoints.

Authentication and authorization guards.

require_authenticated(connection, _)[source]
Return type:

None

require_staff(connection, _)[source]
Return type:

None

require_admin(connection, _)[source]
Return type:

None

require_membership(connection, _)[source]
Return type:

None

require_higher_membership(connection, _)[source]
Return type:

None

require_api_key(connection, _)[source]

Require API key authentication (not session/JWT).

Return type:

None

require_api_key_or_staff(connection, _)[source]

Require API key authentication OR staff user with any auth method.

Return type:

None

Middleware

Authentication middleware for request processing.

OAuth Integration

OAuth provider integration (GitHub, Google, etc.).

Password Handling

Password hashing and verification utilities.

Schemas

Authentication-related data schemas.

Session Management

User session handling.