renamed BasicAuth to Auth

This commit is contained in:
2025-01-29 00:30:08 +09:00
parent 2fa5817e88
commit b7992a0bb7
4 changed files with 40 additions and 23 deletions

View File

@ -42,12 +42,13 @@ type ServerSvcPortMap = map[PortId]ConnRouteId
type ServerWpxResponseTransformer func(r *ServerRouteProxyInfo, resp *http.Response) io.Reader
type ServerWpxForeignPortProxyMaker func(wpx_type string, port_id string) (*ServerRouteProxyInfo, error)
type ServerBasicAuthCredMap map[string]string
type ServerAuthCredMap map[string]string
type ServerBasicAuth struct {
type ServerAuthConfig struct {
Enabled bool
Realm string
Creds ServerBasicAuthCredMap
Creds ServerAuthCredMap
TokenTtl time.Duration
}
type ServerConfig struct {
@ -59,7 +60,7 @@ type ServerConfig struct {
CtlAddrs []string
CtlTls *tls.Config
CtlPrefix string
CtlBasicAuth *ServerBasicAuth
CtlAuth *ServerAuthConfig
PxyAddrs []string
PxyTls *tls.Config