about summary refs log tree commit diff
path: root/gn_auth/errors
diff options
context:
space:
mode:
authorClaude Sonnet 4.62026-08-26 16:48:52 +0000
committerFrederick Muriuki Muriithi2026-08-26 12:31:06 -0500
commit7d923195d0b51193e38a4876bc427177b808dfae (patch)
tree1b912f944452451b42a25e440746dd5092cba131 /gn_auth/errors
parenta90390053ccfbf66eaf6189074a99927d2dce8f0 (diff)
downloadgn-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')
0 files changed, 0 insertions, 0 deletions