Skip to content

Commit 92b81c4

Browse files
authored
test: add some default group/roles claims to testidp (#14591)
Allows testing group/role sync with the fake
1 parent 0d60566 commit 92b81c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/testidp/main.go

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ func RunIDP() func(t *testing.T) {
9191
"email": "oidc_member@coder.com",
9292
"preferred_username": "oidc_member",
9393
"email_verified": true,
94+
"groups": []string{"testidp", "qa", "engineering"},
95+
"roles": []string{"testidp", "admin", "higher_power"},
9496
}),
9597
oidctest.WithDefaultIDClaims(jwt.MapClaims{}),
9698
oidctest.WithDefaultExpire(*expiry),

0 commit comments

Comments
 (0)