- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for withAuthentication (0.31 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication.go
// is invoked to serve the request. func WithAuthentication(handler http.Handler, auth authenticator.Request, failed http.Handler, apiAuds authenticator.Audiences, requestHeaderConfig *authenticatorfactory.RequestHeaderConfig) http.Handler { return withAuthentication(handler, auth, failed, apiAuds, requestHeaderConfig, recordAuthenticationMetrics) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 20:54:07 UTC 2023 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go
respAuds: []string{"some"}, expectSuccess: false, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { success, failed = 0, 0 auth := WithAuthentication( http.HandlerFunc(func(_ http.ResponseWriter, req *http.Request) { if tc.expectSuccess { success = 1 } else { t.Errorf("unexpected call to handler") } }),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit.go
auditinternal "k8s.io/apiserver/pkg/apis/audit" "k8s.io/apiserver/pkg/audit" "k8s.io/apiserver/pkg/endpoints/handlers/responsewriters" ) // WithFailedAuthenticationAudit decorates a failed http.Handler used in WithAuthentication handler. // It is meant to log only failed authentication requests. func WithFailedAuthenticationAudit(failedHandler http.Handler, sink audit.Sink, policy audit.PolicyRuleEvaluator) http.Handler {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 2.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy
allow(path, false, ['PUT'], withAuthentication(path, username, password, new ActionSupport("return 500") { void handle(HttpServletRequest request, HttpServletResponse response) { response.sendError(500, "unexpected username '${request.remoteUser}'") } })) } private Action withAuthentication(String path, String username, String password, Action action) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 32.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go
for _, tt := range testCases { t.Run(tt.desc, func(t *testing.T) { defer authenticatedUserCounter.Reset() defer authenticatedAttemptsCounter.Reset() done := make(chan struct{}) auth := WithAuthentication( http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) { close(done) }), authenticator.RequestFunc(func(_ *http.Request) (*authenticator.Response, bool, error) {
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/kube-scheduler/app/server.go
failedHandler := genericapifilters.Unauthorized(scheme.Codecs) handler = genericapifilters.WithAuthorization(handler, authz, scheme.Codecs) handler = genericapifilters.WithAuthentication(handler, authn, failedHandler, nil, nil) handler = genericapifilters.WithRequestInfo(handler, requestInfoResolver) handler = genericapifilters.WithCacheControl(handler) handler = genericfilters.WithHTTPLogging(handler)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 19:11:24 UTC 2024 - 14.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config.go
failedHandler = filterlatency.TrackCompleted(failedHandler) handler = filterlatency.TrackCompleted(handler) handler = genericapifilters.WithAuthentication(handler, c.Authentication.Authenticator, failedHandler, c.Authentication.APIAudiences, c.Authentication.RequestHeaderConfig) handler = filterlatency.TrackStarted(handler, c.TracerProvider, "authentication")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 47.7K bytes - Viewed (0)