- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 126 for audB (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go
User: &user.DefaultInfo{Name: fmt.Sprintf("holder of token %v", i)}, }, } // make different combinations of audience, failures, denies for the tokens. auds := []string{} for i := 0; i < rr.Intn(4); i++ { auds = append(auds, string(uuid.NewUUID())) } choice := rr.Float64() switch { case choice < 0.9: r.ok = true r.err = nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 20.3K bytes - Viewed (0) -
security/pkg/server/ca/authenticate/oidc_test.go
audToCheck: []string{"aud1"}, audExpected: []string{"aud1", "aud2"}, }, { name: "audience is NOT in the expected set", expectRet: false, audToCheck: []string{"aud3"}, audExpected: []string{"aud1", "aud2"}, }, { name: "one of the audiences is in the expected set", expectRet: true, audToCheck: []string{"aud1", "aud3"},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audiences.go
func WithAudiences(ctx context.Context, auds Audiences) context.Context { return context.WithValue(ctx, audiencesKey, auds) } // AudiencesFrom returns a request's expected audiences stored in the request context. func AudiencesFrom(ctx context.Context) (Audiences, bool) { auds, ok := ctx.Value(audiencesKey).(Audiences) return auds, ok } // Has checks if Audiences contains a specific audiences.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 31 21:50:11 UTC 2018 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go
func keyFunc(hashPool *sync.Pool, auds []string, token string) string { h := hashPool.Get().(hash.Hash) h.Reset() // try to force stack allocation var a [4]byte b := a[:] writeLengthPrefixedString(h, b, token) // encode the length of audiences to avoid ambiguities writeLength(h, b, len(auds)) for _, aud := range auds { writeLengthPrefixedString(h, b, aud) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9.8K bytes - Viewed (0) -
releasenotes/notes/jwt-aud.yaml
Kuat <******@****.***> 1714759362 -0700
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 03 18:02:42 UTC 2024 - 159 bytes - Viewed (0) -
tests/integration/security/testdata/requestauthn/aud.yaml.tmpl
Akshay J Nambiar <******@****.***> 1683529381 +0530
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 08 07:03:01 UTC 2023 - 838 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audiences_test.go
func TestIntersect(t *testing.T) { cs := []struct { auds, tauds Audiences expected Audiences }{ { auds: nil, tauds: nil, expected: Audiences{}, }, { auds: nil, tauds: Audiences{"foo"}, expected: Audiences{}, }, { auds: Audiences{}, tauds: Audiences{}, expected: Audiences{}, }, { auds: Audiences{"foo"}, tauds: Audiences{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 31 21:50:11 UTC 2018 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audagnostic_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:16 UTC 2023 - 4.9K bytes - Viewed (0) -
pkg/registry/authentication/tokenreview/storage.go
fakeReq := &http.Request{Header: http.Header{}} fakeReq.Header.Add("Authorization", "Bearer "+tokenReview.Spec.Token) auds := tokenReview.Spec.Audiences if len(auds) == 0 { auds = r.apiAudiences } if len(auds) > 0 { fakeReq = fakeReq.WithContext(authenticator.WithAudiences(fakeReq.Context(), auds)) } resp, ok, err := r.tokenAuthenticator.AuthenticateRequest(fakeReq) tokenReview.Status.Authenticated = ok
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:13 UTC 2022 - 3.7K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
jwtRule: `{"issuer": "foo", "jwks_uri": "baz", "audiences": ["aud1", "aud2"]}`, }, { name: "invalid jwt rule", expectErr: true, jwtRule: "invalid", }, { name: "jwt rule with invalid audiences", expectErr: true, // audiences must be a string array jwtRule: `{"issuer": "foo", "jwks_uri": "baz", "audiences": "aud1"}`, }, } for _, tt := range tests {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0)