Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 250 for Authenticators (0.21 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/token/union/unionauth_test.go

    	user2 = &user.DefaultInfo{Name: "elegant_sheep", UID: "bravo"}
    )
    
    func (mock *mockAuthRequestHandler) AuthenticateToken(ctx context.Context, token string) (*authenticator.Response, bool, error) {
    	return &authenticator.Response{User: mock.returnUser}, mock.isAuthenticated, mock.err
    }
    
    func TestAuthenticateTokenSecondPasses(t *testing.T) {
    	handler1 := &mockAuthRequestHandler{returnUser: user1}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 22 17:16:59 UTC 2018
    - 5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics.go

    	authorizationLatency.WithContext(ctx).WithLabelValues(resultLabel).Observe(authFinish.Sub(authStart).Seconds())
    }
    
    func recordAuthenticationMetrics(ctx context.Context, resp *authenticator.Response, ok bool, err error, apiAudiences authenticator.Audiences, authStart time.Time, authFinish time.Time) {
    	var resultLabel string
    
    	switch {
    	case err != nil || (resp != nil && !audiencesAreAcceptable(apiAudiences, resp.Audiences)):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          MockResponse(body = "c"),
        )
        val authenticator =
          RecordingOkAuthenticator(
            basic("jesse", "peanutbutter"),
            "Basic",
          )
        client =
          client.newBuilder()
            .authenticator(authenticator)
            .build()
        assertContent("c", getResponse(newRequest("/a")))
        val challengeResponse = authenticator.responses[0]
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val hostnameVerifier: HostnameVerifier? = address.hostnameVerifier
        val certificatePinner: CertificatePinner? = address.certificatePinner
      }
    
      @Test
      fun authenticator() {
        var authenticator: Authenticator = Authenticator { route, response -> TODO() }
      }
    
      @Test
      fun cache() {
        val cache = Cache(File("/cache/"), Integer.MAX_VALUE.toLong())
        cache.initialize()
        cache.delete()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    	// verifier, or until context canceled.
    	initFn := func(ctx context.Context) (done bool, err error) {
    		klog.V(4).Infof("oidc authenticator: attempting init: iss=%v", iss)
    		v, err := initVerifier(ctx, c, iss, audiences)
    		if err != nil {
    			klog.Errorf("oidc authenticator: async token verifier for issuer: %q: %v", iss, err)
    			return false, nil
    		}
    		t.m.Lock()
    		defer t.m.Unlock()
    		t.v = v
    		close(sync)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  6. security/pkg/server/ca/authenticate/oidc_test.go

    	defer server.Close()
    
    	// Create a JWT authenticator
    	jwtRuleStr := `{"issuer": "` + server.URL + `", "jwks_uri": "` + server.URL + `", "audiences": ["baz.svc.id.goog"]}`
    	jwtRule := v1beta1.JWTRule{}
    	err = json.Unmarshal([]byte(jwtRuleStr), &jwtRule)
    	if err != nil {
    		t.Fatalf("failed at unmarshal jwt rule")
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. docs/features/calls.md

    If the response issues an authorization challenge, OkHttp will ask the [`Authenticator`](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-authenticator/) (if one is configured) to satisfy the challenge. If the authenticator supplies a credential, the request is retried with that credential included.
    
    ## Retrying Requests
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmAuthenticator.java

        private String url;
        private SmbAuthException sae;
    
        private void reset() {
            url = null;
            sae = null;
        }
    
    /**
    Set the default <tt>NtlmAuthenticator</tt>. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect.
     */
    
        public synchronized static void setDefault( NtlmAuthenticator a ) {
            if( auth != null ) {
                return;
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.8K bytes
    - Viewed (0)
  9. pkg/kubeapiserver/options/authentication.go

    		authenticatorConfig.CustomDial = egressDialer
    	}
    
    	// var openAPIV3SecuritySchemes spec3.SecuritySchemes
    	authenticator, updateAuthenticationConfig, openAPIV2SecurityDefinitions, openAPIV3SecuritySchemes, err := authenticatorConfig.New(ctx)
    	if err != nil {
    		return err
    	}
    	authInfo.Authenticator = authenticator
    
    	if len(o.AuthenticationConfigFile) > 0 {
    		authenticationconfigmetrics.RegisterMetrics()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val hostnameVerifier: HostnameVerifier = client.hostnameVerifier()
        val certificatePinner: CertificatePinner = client.certificatePinner()
        val proxyAuthenticator: Authenticator = client.proxyAuthenticator()
        val authenticator: Authenticator = client.authenticator()
        val connectionPool: ConnectionPool = client.connectionPool()
        val dns: Dns = client.dns()
        val followSslRedirects: Boolean = client.followSslRedirects()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top