Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42c4792

Browse files
authored
test: add sub claim field to static id claims in testidp (#19399)
1 parent95388f7 commit42c4792

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)

[8]ページ先頭

©2009-2025 Movatter.jp