about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorClaude Sonnet 4.62026-06-15 17:40:00 +0000
committerFrederick Muriuki Muriithi2026-06-15 13:01:36 -0500
commit7039020ff904e82dfeab1b604263b1e6447ba908 (patch)
tree48310dd6b09028174b60baac18759b49eb9355a2 /README.md
parentb8d3cc1919f48272d6a88228c77a00101c96349e (diff)
downloadgn-integration-tests-7039020ff904e82dfeab1b604263b1e6447ba908.tar.gz
tests: add TestMasqueradePrivilege auth-flow tests HEAD main
Test that POST /auth/user/masquerade/ enforces the
system:user:masquerade privilege.  Both admin and basic users can
obtain a token with masquerade scope (the test client supports it),
but gn-auth's can_masquerade decorator checks the user's roles:

  - Basic user → ForbiddenAccess → 403
  - Admin user → can masquerade as basic user → 200

Adds three session-scoped fixtures to the test module: admin_masquerade_token,
basic_masquerade_token, and basic_user_id.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions