- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TokenFunc (0.11 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go
) func TestCachedTokenAuthenticator(t *testing.T) { var ( calledWithToken []string resultUsers map[string]user.Info resultOk bool resultErr error ) fakeAuth := authenticator.TokenFunc(func(ctx context.Context, token string) (*authenticator.Response, bool, error) { calledWithToken = append(calledWithToken, token) return &authenticator.Response{User: resultUsers[token]}, resultOk, resultErr })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 20.3K bytes - Viewed (0) -
pkg/kubeapiserver/authenticator/config.go
config: config, jwtAuthenticatorPtr: jwtAuthenticatorPtr, }).updateAuthenticationConfig tokenAuthenticators = append(tokenAuthenticators, authenticator.TokenFunc(func(ctx context.Context, token string) (*authenticator.Response, bool, error) { return jwtAuthenticatorPtr.Load().jwtAuthenticator.AuthenticateToken(ctx, token) }), ) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 19:29:33 UTC 2024 - 15.4K bytes - Viewed (0)