mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
test(auth): narrow userinfo before indexing it
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
b69207cc66
commit
de0eff320c
@@ -673,6 +673,7 @@ async def test_oidc_fetches_missing_claims_from_userinfo_endpoint(
|
||||
assert new_user.username == "testuser"
|
||||
assert new_user.role == Role.ADMIN
|
||||
# ID token claims win over the UserInfo response
|
||||
assert userinfo is not None
|
||||
assert userinfo["iss"] == "http://localhost:9000/application/o/romm/"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user