- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for BasicAuth (0.33 sec)
-
cluster/common.sh
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 17 15:36:33 UTC 2023 - 17.9K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)