mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
test: add sub claim field to static id claims in testidp (#19399)
This commit is contained in:
@@ -96,7 +96,9 @@ func RunIDP() func(t *testing.T) {
|
||||
"groups": []string{"testidp", "qa", "engineering"},
|
||||
"roles": []string{"testidp", "admin", "higher_power"},
|
||||
}),
|
||||
oidctest.WithDefaultIDClaims(jwt.MapClaims{}),
|
||||
oidctest.WithDefaultIDClaims(jwt.MapClaims{
|
||||
"sub": uuid.MustParse("26c6a19c-b9b8-493b-a991-88a4c3310314"),
|
||||
}),
|
||||
oidctest.WithDefaultExpire(*expiry),
|
||||
oidctest.WithStaticCredentials(*clientID, *clientSecret),
|
||||
oidctest.WithIssuer("http://localhost:4500"),
|
||||
|
||||
Reference in New Issue
Block a user