Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for BasicAuth (0.33 sec)

  1. cluster/common.sh

    }
    
    function load-or-gen-kube-basicauth() {
      if [[ -n "${KUBE_CONTEXT:-}" ]]; then
        get-kubeconfig-basicauth
      fi
    
      if [[ -z "${KUBE_USER:-}" || -z "${KUBE_PASSWORD:-}" ]]; then
        gen-kube-basicauth
      fi
    
      # Make sure they don't contain any funny characters.
      if ! [[ "${KUBE_USER}" =~ ^[-._@a-zA-Z0-9]+$ ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 15:36:33 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/CurlHelper.java

                final String value = username + ":" + password;
                final String basicAuth = "Basic " + java.util.Base64.getEncoder().encodeToString(value.getBytes(StandardCharsets.UTF_8));
                request.header("Authorization", basicAuth);
            }
            if (sslSocketFactory != null) {
                request.sslSocketFactory(sslSocketFactory);
            }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authn_audit.go

    		failedHandler.ServeHTTP(rw, req)
    	})
    }
    
    func getAuthMethods(req *http.Request) string {
    	authMethods := []string{}
    
    	if _, _, ok := req.BasicAuth(); ok {
    		authMethods = append(authMethods, "basic")
    	}
    
    	auth := strings.TrimSpace(req.Header.Get("Authorization"))
    	parts := strings.Split(auth, " ")
    	if len(parts) > 1 && strings.ToLower(parts[0]) == "bearer" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vcweb/auth.go

    		if err := json.Unmarshal(data, &token); err != nil {
    			logger.Print(err)
    			http.Error(w, "malformed access file", http.StatusInternalServerError)
    			return
    		}
    		if username, password, ok := req.BasicAuth(); !ok || username != token.Username || password != token.Password {
    			code := token.StatusCode
    			if code == 0 {
    				code = http.StatusUnauthorized
    			}
    			if code == http.StatusUnauthorized {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 17:47:26 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/filters/cors.go

    	"k8s.io/klog/v2"
    )
    
    // TODO: use restful.CrossOriginResourceSharing
    // See github.com/emicklei/go-restful/blob/master/examples/cors/restful-CORS-filter.go, and
    // github.com/emicklei/go-restful/blob/master/examples/basicauth/restful-basic-authentication.go
    // Or, for a more detailed implementation use https://github.com/martini-contrib/cors
    // or implement CORS at your proxy layer.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 15 13:59:10 UTC 2022
    - 4.6K bytes
    - Viewed (0)
  6. src/net/http/request_test.go

    		username, password, ok := r.BasicAuth()
    		if ok != tt.ok || username != tt.username || password != tt.password {
    			t.Errorf("BasicAuth() = %#v, want %#v", getBasicAuthTest{username, password, ok},
    				getBasicAuthTest{tt.username, tt.password, tt.ok})
    		}
    	}
    	// Unauthenticated request.
    	r, _ := NewRequest("GET", "http://example.com/", nil)
    	username, password, ok := r.BasicAuth()
    	if ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  7. pkg/kubeapiserver/authenticator/config.go

    	var authenticators []authenticator.Request
    	var tokenAuthenticators []authenticator.Token
    	securityDefinitionsV2 := spec.SecurityDefinitions{}
    	securitySchemesV3 := spec3.SecuritySchemes{}
    
    	// front-proxy, BasicAuth methods, local first, then remote
    	// Add the front proxy authenticator if requested
    	if config.RequestHeaderConfig != nil {
    		requestHeaderAuthenticator := headerrequest.NewDynamicVerifyOptionsSecure(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/options/options_test.go

    		username, _, _ = req.BasicAuth()
    		if username == "" {
    			username = "none, tls"
    		}
    		w.WriteHeader(200)
    		w.Write([]byte(`ok`))
    	}))
    	defer server.Close()
    	// http server
    	insecureserver := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		username, _, _ = req.BasicAuth()
    		if username == "" {
    			username = "none, http"
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  9. api/go1.4.txt

    # CL 93550043 math/big: implement Rat.Float32, Robert Griesemer <******@****.***>
    pkg math/big, method (*Rat) Float32() (float32, bool)
    
    # CL 76540043 net/http: add BasicAuth method to *http.Request, Kelsey Hightower <******@****.***>
    pkg net/http, method (*Request) BasicAuth() (string, string, bool)
    
    # CL 137940043 net/http: add Transport.DialTLS hook, Brad Fitzpatrick <******@****.***>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 12 03:01:01 UTC 2014
    - 34K bytes
    - Viewed (0)
  10. src/net/http/client.go

    		username := u.Username()
    		password, _ := u.Password()
    		forkReq()
    		req.Header = cloneOrMakeHeader(ireq.Header)
    		req.Header.Set("Authorization", "Basic "+basicAuth(username, password))
    	}
    
    	if !deadline.IsZero() {
    		forkReq()
    	}
    	stopTimer, didTimeout := setRequestCancel(req, rt, deadline)
    
    	resp, err = rt.RoundTrip(req)
    	if err != nil {
    		stopTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top