Skip to content

add authorization#37

Open
pmeier wants to merge 9 commits into
mainfrom
authorization
Open

add authorization#37
pmeier wants to merge 9 commits into
mainfrom
authorization

Conversation

@pmeier
Copy link
Copy Markdown
Member

@pmeier pmeier commented May 21, 2026

Add task-level authorization to ravnar's API by introducing a flat list of permissions on the schema.User model. Permissions are ephemeral, provided exclusively by the Authenticator on each request, and never stored by ravnar. A new factory dependency authorized_user_with(*permissions) gates each endpoint, checking that the authenticated user possesses all required permissions. A plain assert_permissions(user, *permissions) function provides the same check for internal functions. Existing item-level authorization (user-scoped data isolation) is untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant