diff options
| author | Claude Sonnet 4.6 | 2026-08-26 16:48:52 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-08-26 12:31:06 -0500 |
| commit | 7d923195d0b51193e38a4876bc427177b808dfae (patch) | |
| tree | 1b912f944452451b42a25e440746dd5092cba131 /gn_auth/errors/authlib.py | |
| parent | a90390053ccfbf66eaf6189074a99927d2dce8f0 (diff) | |
| download | gn-auth-7d923195d0b51193e38a4876bc427177b808dfae.tar.gz | |
feat(admin/users): wire auth guards on POST /auth/user/create
Adds @require_oauth("profile") for 401 on unauthenticated requests and
an authorised_for2 check for the system:user:create-user privilege,
raising ForbiddenAccess (403) for non-admin callers.
Returns 501 for the success path until the body logic is implemented.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'gn_auth/errors/authlib.py')
0 files changed, 0 insertions, 0 deletions
