test: add some default group/roles claims to testidp (#14591)

Allows testing group/role sync with the fake
This commit is contained in:
Steven Masley
2024-09-06 12:35:17 -05:00
committed by GitHub
parent 0d6056633d
commit 92b81c4164

View File

@@ -91,6 +91,8 @@ func RunIDP() func(t *testing.T) {
"email": "oidc_member@coder.com",
"preferred_username": "oidc_member",
"email_verified": true,
"groups": []string{"testidp", "qa", "engineering"},
"roles": []string{"testidp", "admin", "higher_power"},
}),
oidctest.WithDefaultIDClaims(jwt.MapClaims{}),
oidctest.WithDefaultExpire(*expiry),