Skip to content

Commit f802dec

Browse files
committed
test: add some default group/roles claims to testidp
Allows testing group/role sync with the fake
1 parent c249174 commit f802dec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/testidp/main.go

Lines changed: 2 additions & 0 deletions
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)