- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for audExpected (0.18 sec)
-
security/pkg/server/ca/authenticate/oidc_test.go
expectRet bool audToCheck []string audExpected []string }{ { name: "audience is in the expected set", expectRet: true, audToCheck: []string{"aud1"}, audExpected: []string{"aud1", "aud2"}, }, { name: "audience is NOT in the expected set", expectRet: false, audToCheck: []string{"aud3"}, audExpected: []string{"aud1", "aud2"}, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 7.3K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/oidc.go
}, nil } // checkAudience() returns true if the audiences to check are in // the expected audiences. Otherwise, return false. func checkAudience(audToCheck []string, audExpected []string) bool { for _, a := range audToCheck { for _, b := range audExpected { if a == b { return true } } } return false } type JwtPayload struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 5.1K bytes - Viewed (0)