Commit graph

11 commits

Author SHA1 Message Date
2ec9cca99c feat: super admin handling
The list of super admins now comes from a dependency, allowing it to easily be overrridden during testing.
2026-06-04 11:48:50 +01:00
3460cd76a5 tests: super admin auth tests 2026-06-03 14:36:15 +01:00
f44c5b6f36 minor: unauthorized exception su message 2026-06-03 14:22:11 +01:00
42349b0182 docs: auth docstrings
Issue: #13
2026-05-28 11:22:47 +01:00
a86cfea65a minor: type hint 2026-05-28 11:22:37 +01:00
88a64d2047 feat: root user dependencies also allow super admins 2026-05-28 10:56:45 +01:00
51bb48372c feat: auth dependency for root user with org in body 2026-05-27 15:34:18 +01:00
36736e5142 fix: auth dependency return values and types
Return values were all labelled as dicts instead of bools. Root user dependency now returns the org for which they are root user.
2026-05-27 15:22:32 +01:00
868e56ce40 feat: custom exceptions instead of direct fastapi.httpexceptions
Resolves #2
2026-05-27 14:58:10 +01:00
d3d3b2ca63 feat: auth dependencies
These dependencies require `user_model_claims_dependency` which requires the `claims_dependency`. This caused an import loop error and therefore they must be defined in a different file from `claims_dependency`.

Resolves #6
2026-05-27 14:30:11 +01:00
376a7a9fe5 Initial commit 2026-04-06 12:41:49 +01:00