Skip to content

Commit 42c4792

Browse files
authored
test: add sub claim field to static id claims in testidp (#19399)
1 parent 95388f7 commit 42c4792

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/testidp/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ func RunIDP() func(t *testing.T) {
9696
"groups": []string{"testidp", "qa", "engineering"},
9797
"roles": []string{"testidp", "admin", "higher_power"},
9898
}),
99-
oidctest.WithDefaultIDClaims(jwt.MapClaims{}),
99+
oidctest.WithDefaultIDClaims(jwt.MapClaims{
100+
"sub": uuid.MustParse("26c6a19c-b9b8-493b-a991-88a4c3310314"),
101+
}),
100102
oidctest.WithDefaultExpire(*expiry),
101103
oidctest.WithStaticCredentials(*clientID, *clientSecret),
102104
oidctest.WithIssuer("http://localhost:4500"),

0 commit comments

Comments
 (0)