test(auth): narrow userinfo before indexing it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Georges-Antoine Assi
2026-09-28 17:28:56 -04:00
committed by GitHub
parent b69207cc66
commit de0eff320c

View File

@@ -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/"