- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 250 for Authenticators (0.22 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go
} } func TestCachedTokenAuthenticatorWithAudiences(t *testing.T) { resultUsers := make(map[string]user.Info) fakeAuth := authenticator.TokenFunc(func(ctx context.Context, token string) (*authenticator.Response, bool, error) { auds, _ := authenticator.AudiencesFrom(ctx) return &authenticator.Response{User: resultUsers[auds[0]+token]}, true, nil }) fakeClock := testingclock.NewFakeClock(time.Now())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 20.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audagnostic.go
} resp, ok, err := authenticate() if err != nil || !ok { return nil, false, err } if len(resp.Audiences) > 0 { // maybe the authenticator was audience aware after all. return nil, false, fmt.Errorf("audience agnostic authenticator wrapped an authenticator that returned audiences: %q", resp.Audiences) } resp.Audiences = auds return resp, true, nil } type audAgnosticRequestAuthenticator struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 31 22:31:49 UTC 2018 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go
"authentication_attempts", } testCases := []struct { desc string response *authenticator.Response status bool err error apiAudience authenticator.Audiences want string }{ { desc: "auth ok", response: &authenticator.Response{ User: &user.DefaultInfo{Name: "admin"}, }, status: true, want: `
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 20 13:35:55 UTC 2023 - 8.7K bytes - Viewed (0) -
cmd/kubelet/app/auth.go
if err != nil { return nil, nil, err } return server.NewKubeletAuth(authenticator, attributes, authorizer), runAuthenticatorCAReload, nil } // BuildAuthn creates an authenticator compatible with the kubelet's needs func BuildAuthn(client authenticationclient.AuthenticationV1Interface, authn kubeletconfig.KubeletAuthentication) (authenticator.Request, func(<-chan struct{}), error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 07 14:37:01 UTC 2022 - 5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/group/token_group_adder_test.go
"k8s.io/apiserver/pkg/authentication/authenticator" "k8s.io/apiserver/pkg/authentication/user" ) func TestTokenGroupAdder(t *testing.T) { capacity := make([]string, 0, 1024) response := &authenticator.Response{User: &user.DefaultInfo{Name: "user", Groups: append(capacity, "original")}} orig := toJson(response) adder := authenticator.Token( NewTokenGroupAdder(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go
tokenReview tokenReviewer retryBackoff wait.Backoff implicitAuds authenticator.Audiences requestTimeout time.Duration metrics AuthenticatorMetrics } // NewFromInterface creates a webhook authenticator using the given tokenReview // client. It is recommend to wrap this authenticator with the token cache // authenticator implemented in // k8s.io/apiserver/pkg/authentication/token/cache.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 00:47:42 UTC 2022 - 11.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/sso/aad/AzureAdAuthenticatorTest.java
public void test_addGroupOrRoleName() { AzureAdAuthenticator authenticator = new AzureAdAuthenticator(); List<String> list = new ArrayList<>(); list.clear(); authenticator.addGroupOrRoleName(list, "test", true); assertEquals(1, list.size()); assertEquals("test", list.get(0)); list.clear(); authenticator.addGroupOrRoleName(list, "test", false);
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package authenticator contains implementations for pkg/auth/authenticator interfaces
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 24 19:56:03 UTC 2017 - 735 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/websocket/protocol.go
type ProtocolAuthenticator struct { // auth is the token authenticator to use to validate the token auth authenticator.Token } func NewProtocolAuthenticator(auth authenticator.Token) *ProtocolAuthenticator { return &ProtocolAuthenticator{auth} } func (a *ProtocolAuthenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) { // Only accept websocket connections
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 18:21:43 UTC 2023 - 3.4K bytes - Viewed (0) -
pkg/registry/authentication/rest/storage_authentication.go
"k8s.io/kubernetes/pkg/registry/authentication/selfsubjectreview" "k8s.io/kubernetes/pkg/registry/authentication/tokenreview" ) type RESTStorageProvider struct { Authenticator authenticator.Request APIAudiences authenticator.Audiences }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 12:50:40 UTC 2023 - 4.4K bytes - Viewed (0)