Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 250 for Authenticators (0.3 sec)

  1. okhttp/src/test/java/okhttp3/internal/RecordingAuthenticator.kt

     * limitations under the License.
     */
    package okhttp3.internal
    
    import java.net.Authenticator
    import java.net.PasswordAuthentication
    
    class RecordingAuthenticator(
      private val authentication: PasswordAuthentication? =
        PasswordAuthentication(
          "username",
          "password".toCharArray(),
        ),
    ) : Authenticator() {
      val calls = mutableListOf<String>()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/metrics.go

    	clock         clock.PassiveClock
    }
    
    func (a *instrumentedAuthenticator) AuthenticateToken(ctx context.Context, token string) (*authenticator.Response, bool, error) {
    	start := a.clock.Now()
    	response, ok, err := a.delegate.AuthenticateToken(ctx, token)
    	// this only happens when issuer doesn't match the authenticator
    	// we don't want to record metrics for this case
    	if !ok && err == nil {
    		return response, ok, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/TestHttpHeaderAuthenticator.groovy

     */
    
    package org.gradle.test.fixtures.server.http
    
    import org.eclipse.jetty.security.Authenticator
    import org.eclipse.jetty.security.ServerAuthException
    import org.eclipse.jetty.server.Authentication
    
    import javax.servlet.ServletRequest
    import javax.servlet.ServletResponse
    
    class TestHttpHeaderAuthenticator implements Authenticator {
    
        public static final String AUTH_SCHEME_NAME = "HEADER"
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. docs_src/nosql_databases/tutorial001.py

    
    def get_bucket():
        cluster = Cluster(
            "couchbase://couchbasehost:8091?fetch_mutation_tokens=1&operation_timeout=30&n1ql_timeout=300"
        )
        authenticator = PasswordAuthenticator("username", "password")
        cluster.authenticate(authenticator)
        bucket: Bucket = cluster.open_bucket("bucket_name", lockmode=LOCKMODE_WAIT)
        bucket.timeout = 30
        bucket.n1ql_timeout = 300
        return bucket
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

     * limitations under the License.
     */
    package okhttp3.internal
    
    import java.io.IOException
    import okhttp3.Authenticator
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    
    class RecordingOkAuthenticator(
      val credential: String?,
      val scheme: String?,
    ) : Authenticator {
      val responses = mutableListOf<Response>()
      val routes = mutableListOf<Route>()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1_test.go

    			implicitAuds: apiAuds,
    			reqAuds:      authenticator.Audiences{"other"},
    			serverResponse: authenticationv1.TokenReviewStatus{
    				Authenticated: false,
    			},
    			expectedAuthenticated: false,
    		},
    		{
    			description:  "bad audiences",
    			implicitAuds: apiAuds,
    			reqAuds:      authenticator.Audiences{"other"},
    			// webhook authenticator hasn't been upgraded to support audience.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  7. pkg/registry/core/serviceaccount/storage/storage.go

    limitations under the License.
    */
    
    package storage
    
    import (
    	"time"
    
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apiserver/pkg/authentication/authenticator"
    	"k8s.io/apiserver/pkg/registry/generic"
    	genericregistry "k8s.io/apiserver/pkg/registry/generic/registry"
    	"k8s.io/apiserver/pkg/registry/rest"
    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/pkg/printers"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. okhttp-urlconnection/README.md

    OkHttp URLConnection
    ====================
    
    This module integrates OkHttp with `Authenticator` and `CookieHandler` from `java.net`.
    
    This module is obsolete; prefer `okhttp-java-net-cookiejar`.
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.12.0")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 293 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/authentication.go

    			return fmt.Errorf("unable to load request-header-client-ca-file: %v", err)
    		}
    	}
    
    	// create authenticator
    	authenticator, securityDefinitions, err := cfg.New()
    	if err != nil {
    		return err
    	}
    	authenticationInfo.Authenticator = authenticator
    	if openAPIConfig != nil {
    		openAPIConfig.SecurityDefinitions = securityDefinitions
    	}
    
    	return nil
    }
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/authentication/request/union/unionauth_test.go

    	user2 = &user.DefaultInfo{Name: "elegant_sheep", UID: "bravo"}
    )
    
    func (mock *mockAuthRequestHandler) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	return &authenticator.Response{User: mock.returnUser}, mock.isAuthenticated, mock.err
    }
    
    func TestAuthenticateRequestSecondPasses(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
    - 5.2K bytes
    - Viewed (0)
Back to top