Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for withAuthentication (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top