/dports/net/traefik/traefik-2.6.1/vendor/github.com/abbot/go-http-auth/ |
H A D | basic.go | 52 type BasicAuth struct { struct 61 var _ = (AuthenticatorInterface)((*BasicAuth)(nil)) 66 func (a *BasicAuth) CheckAuth(r *http.Request) string { argument 67 user, password, ok := r.BasicAuth() 121 func (a *BasicAuth) RequireAuth(w http.ResponseWriter, r *http.Request) { argument 134 func (a *BasicAuth) Wrap(wrapped AuthenticatedHandlerFunc) http.HandlerFunc { argument 146 func (a *BasicAuth) NewContext(ctx context.Context, r *http.Request) context.Context { argument 159 func NewBasicAuthenticator(realm string, secrets SecretProvider) *BasicAuth { 160 return &BasicAuth{Realm: realm, Secrets: secrets}
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/grafana/loki/vendor/github.com/cortexproject/cortex/pkg/ruler/ |
H A D | notifier.go | 27 BasicAuth util.BasicAuth `yaml:",inline"` member 32 cfg.BasicAuth.RegisterFlagsWithPrefix("ruler.alertmanager-client.", f) 180 amConfig.HTTPClientConfig.BasicAuth = &config_util.BasicAuth{ 185 amConfig.HTTPClientConfig.BasicAuth.Password = config_util.Secret(password) 190 if rulerConfig.Notifier.BasicAuth.IsEnabled() { 191 amConfig.HTTPClientConfig.BasicAuth = &config_util.BasicAuth{ 192 Username: rulerConfig.Notifier.BasicAuth.Username, 193 Password: config_util.Secret(rulerConfig.Notifier.BasicAuth.Password),
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/cortexproject/cortex/pkg/ruler/ |
H A D | notifier.go | 27 BasicAuth util.BasicAuth `yaml:",inline"` member 32 cfg.BasicAuth.RegisterFlagsWithPrefix("ruler.alertmanager-client.", f) 180 amConfig.HTTPClientConfig.BasicAuth = &config_util.BasicAuth{ 185 amConfig.HTTPClientConfig.BasicAuth.Password = config_util.Secret(password) 190 if rulerConfig.Notifier.BasicAuth.IsEnabled() { 191 amConfig.HTTPClientConfig.BasicAuth = &config_util.BasicAuth{ 192 Username: rulerConfig.Notifier.BasicAuth.Username, 193 Password: config_util.Secret(rulerConfig.Notifier.BasicAuth.Password),
|
/dports/ftp/sftpgo/sftpgo-2.2.0/vendor/github.com/studio-b12/gowebdav/ |
H A D | basicAuth.go | 9 type BasicAuth struct { struct 15 func (b *BasicAuth) Type() string { argument 20 func (b *BasicAuth) User() string { argument 25 func (b *BasicAuth) Pass() string { argument 30 func (b *BasicAuth) Authorize(req *http.Request, method string, path string) { argument
|
/dports/net-mgmt/nsd_exporter/nsd_exporter-0.1.0/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 31 type BasicAuth struct { struct 68 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 85 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 88 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 104 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 105 type plain BasicAuth 157 if cfg.BasicAuth != nil { 158 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/www/beehive/beehive-0.4.0/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 31 type BasicAuth struct { struct 68 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 85 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 88 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 104 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 105 type plain BasicAuth 157 if cfg.BasicAuth != nil { 158 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/net-mgmt/prometheus2/prometheus-2.30.3/vendor/github.com/prometheus/common/sigv4/common-0.1.0/config/ |
H A D | http_config.go | 31 type BasicAuth struct { struct 68 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 85 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 88 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 104 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 105 type plain BasicAuth 157 if cfg.BasicAuth != nil { 158 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/net-mgmt/ping_exporter/ping_exporter-0.44/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 31 type BasicAuth struct { struct 68 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 85 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 88 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 104 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 105 type plain BasicAuth 157 if cfg.BasicAuth != nil { 158 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/net-mgmt/bosun/bosun-0.9.0-preview/vendor/github.com/prometheus/prometheus/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 31 type BasicAuth struct { struct 68 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 85 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 88 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 104 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 105 type plain BasicAuth 157 if cfg.BasicAuth != nil { 158 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/net-mgmt/bosun/bosun-0.9.0-preview/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 31 type BasicAuth struct { struct 68 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 85 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 88 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 104 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 105 type plain BasicAuth 157 if cfg.BasicAuth != nil { 158 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/grafana/grafana-plugin-sdk-go/backend/ |
H A D | common_test.go | 44 if tc.expectedClientOptions.BasicAuth != nil { 45 assert.Equal(t, tc.expectedClientOptions.BasicAuth, opts.BasicAuth) 47 assert.Nil(t, opts.BasicAuth) 96 BasicAuth: &httpclient.BasicAuthOptions{ 127 BasicAuth: &httpclient.BasicAuthOptions{ 167 if tc.expectedClientOptions.BasicAuth != nil { 168 assert.Equal(t, tc.expectedClientOptions.BasicAuth, opts.BasicAuth) 170 assert.Nil(t, opts.BasicAuth)
|
/dports/net/rclone/rclone-1.57.0/vendor/github.com/abbot/go-http-auth/ |
H A D | basic.go | 50 type BasicAuth struct { struct 59 var _ = (AuthenticatorInterface)((*BasicAuth)(nil)) 68 func (a *BasicAuth) CheckAuth(r *http.Request) string { argument 126 func (a *BasicAuth) RequireAuth(w http.ResponseWriter, r *http.Request) { argument 140 func (a *BasicAuth) Wrap(wrapped AuthenticatedHandlerFunc) http.HandlerFunc { argument 152 func (a *BasicAuth) NewContext(ctx context.Context, r *http.Request) context.Context { argument 161 func NewBasicAuthenticator(realm string, secrets SecretProvider) *BasicAuth { 162 return &BasicAuth{Realm: realm, Secrets: secrets}
|
/dports/net-mgmt/bosun/bosun-0.9.0-preview/vendor/github.com/google/cadvisor/Godeps/_workspace/src/github.com/abbot/go-http-auth/ |
H A D | basic.go | 10 type BasicAuth struct { struct 22 func (a *BasicAuth) CheckAuth(r *http.Request) string { argument 62 func (a *BasicAuth) RequireAuth(w http.ResponseWriter, r *http.Request) { argument 75 func (a *BasicAuth) Wrap(wrapped AuthenticatedHandlerFunc) http.HandlerFunc { argument 86 func NewBasicAuthenticator(realm string, secrets SecretProvider) *BasicAuth { 87 return &BasicAuth{Realm: realm, Secrets: secrets}
|
/dports/net-mgmt/promscale/promscale-0.6.2/vendor/github.com/thanos-io/thanos/pkg/http/ |
H A D | http.go | 29 BasicAuth BasicAuth `yaml:"basic_auth"` member 55 type BasicAuth struct { struct 62 func (b BasicAuth) IsZero() bool { argument 87 if !cfg.BasicAuth.IsZero() { 88 httpClientConfig.BasicAuth = &config_util.BasicAuth{ 89 Username: cfg.BasicAuth.Username, 90 Password: config_util.Secret(cfg.BasicAuth.Password), 91 PasswordFile: cfg.BasicAuth.PasswordFile,
|
/dports/net-mgmt/thanos/thanos-0.11.0/pkg/http/ |
H A D | http.go | 29 BasicAuth BasicAuth `yaml:"basic_auth"` member 55 type BasicAuth struct { struct 62 func (b BasicAuth) IsZero() bool { argument 87 if !cfg.BasicAuth.IsZero() { 88 httpClientConfig.BasicAuth = &config_util.BasicAuth{ 89 Username: cfg.BasicAuth.Username, 90 Password: config_util.Secret(cfg.BasicAuth.Password), 91 PasswordFile: cfg.BasicAuth.PasswordFile,
|
/dports/www/py-aiohttp/aiohttp-3.7.4.post0/tests/ |
H A D | test_helpers.py | 78 helpers.BasicAuth(None) 83 helpers.BasicAuth("nkim", None) 88 helpers.BasicAuth("nkim:1", "pwd") 92 auth = helpers.BasicAuth("nkim") 98 auth = helpers.BasicAuth("nkim", "pwd") 112 auth = helpers.BasicAuth.decode(header) 119 helpers.BasicAuth.decode("bmtpbTpwd2Q=") 129 helpers.BasicAuth.decode("Basic bmtpbTpwd2Q") 135 helpers.BasicAuth.decode(header) 141 helpers.BasicAuth.decode(header) [all …]
|
/dports/net-im/dendrite/dendrite-0.5.1/internal/httputil/ |
H A D | httpapi_test.go | 26 b BasicAuth 49 b: BasicAuth{Username: "test"}, // no basic auth 58 b: BasicAuth{Password: "test"}, // no basic auth 67 b: BasicAuth{Username: "test", Password: "test"}, // basic auth enabled 76 b: BasicAuth{Username: "test1", Password: "test"}, // basic auth enabled 85 b: BasicAuth{Username: "test", Password: "test"}, // basic auth enabled
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/cortexproject/cortex/vendor/github.com/thanos-io/thanos/pkg/http/ |
H A D | http.go | 31 BasicAuth BasicAuth `yaml:"basic_auth"` member 60 type BasicAuth struct { struct 67 func (b BasicAuth) IsZero() bool { argument 92 if !cfg.BasicAuth.IsZero() { 93 httpClientConfig.BasicAuth = &config_util.BasicAuth{ 94 Username: cfg.BasicAuth.Username, 95 Password: config_util.Secret(cfg.BasicAuth.Password), 96 PasswordFile: cfg.BasicAuth.PasswordFile,
|
/dports/www/grafana8/grafana-8.3.6/vendor/github.com/grafana/loki/vendor/github.com/thanos-io/thanos/pkg/http/ |
H A D | http.go | 31 BasicAuth BasicAuth `yaml:"basic_auth"` member 60 type BasicAuth struct { struct 67 func (b BasicAuth) IsZero() bool { argument 92 if !cfg.BasicAuth.IsZero() { 93 httpClientConfig.BasicAuth = &config_util.BasicAuth{ 94 Username: cfg.BasicAuth.Username, 95 Password: config_util.Secret(cfg.BasicAuth.Password), 96 PasswordFile: cfg.BasicAuth.PasswordFile,
|
/dports/www/miniserve/miniserve-0.18.0/cargo-crates/actix-web-httpauth-0.6.0-beta.2/src/extractors/ |
H A D | basic.rs | 92 pub struct BasicAuth(Basic); struct 94 impl BasicAuth { implementation 106 impl FromRequest for BasicAuth { implementation 117 .map(|auth| BasicAuth(auth.into_scheme())) in from_request() 132 impl AuthExtractor for BasicAuth { implementation 139 .map(|auth| BasicAuth(auth.into_scheme())) in from_service_request()
|
/dports/net-mgmt/bind_exporter/bind_exporter-0.4.0/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 41 type BasicAuth struct { struct 48 func (a *BasicAuth) SetDirectory(dir string) { argument 86 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 103 c.BasicAuth.SetDirectory(dir) 113 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 116 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 132 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 133 type plain BasicAuth 197 if cfg.BasicAuth != nil { 198 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/www/oauth2-proxy/oauth2-proxy-7.2.0/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 41 type BasicAuth struct { struct 48 func (a *BasicAuth) SetDirectory(dir string) { argument 86 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 103 c.BasicAuth.SetDirectory(dir) 113 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 116 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 132 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 133 type plain BasicAuth 197 if cfg.BasicAuth != nil { 198 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/sysutils/snmp_exporter/snmp_exporter-0.20.0/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 41 type BasicAuth struct { struct 48 func (a *BasicAuth) SetDirectory(dir string) { argument 86 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 103 c.BasicAuth.SetDirectory(dir) 113 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 116 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 132 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 133 type plain BasicAuth 197 if cfg.BasicAuth != nil { 198 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/databases/litestream/litestream-0.3.6/vendor/github.com/prometheus/common/config/ |
H A D | http_config.go | 41 type BasicAuth struct { struct 48 func (a *BasicAuth) SetDirectory(dir string) { argument 86 BasicAuth *BasicAuth `yaml:"basic_auth,omitempty"` member 103 c.BasicAuth.SetDirectory(dir) 113 if c.BasicAuth != nil && (len(c.BearerToken) > 0 || len(c.BearerTokenFile) > 0) { 116 if c.BasicAuth != nil && (string(c.BasicAuth.Password) != "" && c.BasicAuth.PasswordFile != "") { 132 func (a *BasicAuth) UnmarshalYAML(unmarshal func(interface{}) error) error { argument 133 type plain BasicAuth 197 if cfg.BasicAuth != nil { 198 …rt = NewBasicAuthRoundTripper(cfg.BasicAuth.Username, cfg.BasicAuth.Password, cfg.BasicAuth.Passwo…
|
/dports/devel/yaegi/yaegi-0.9.23/_test/ |
H A D | struct21.go | 5 type BasicAuth struct { struct 10 func (a *BasicAuth) CheckAuth() string { return a.Secrets("me", a.Realm) } argument 12 func (a *BasicAuth) secretBasic(user, realm string) string { return a.Realm + "-" + user + "-" + re… argument 15 b := &BasicAuth{Realm: "test"}
|