Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: add some default group/roles claims to testidp
Allows testing group/role sync with the fake
  • Loading branch information
Emyrk committed Sep 6, 2024
commit f802dec8adb9cebbc04a08b2b340e8ad75f0d70d
2 changes: 2 additions & 0 deletions scripts/testidp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Loading