Versions in this module Expand all Collapse all v1 v1.21.6 Jul 21, 2024 Changes in this version + const ManagementClient + const Plugin + var Defaults = Config + var ErrRequired = errors.New("required") + func FlagSet(name string) *flag.FlagSet + func IsURLEmpty(url *url.URL) bool + func StringToTemplateHookFunc() mapstructure.DecodeHookFuncType + func StringToURLHookFunc() mapstructure.DecodeHookFuncType + func Validate(mode int, conf Config) error + type Config struct + ConfigFile string + Debug Debug + HTTP HTTP + Log Log + OAuth2 OAuth2 + OpenVpn OpenVpn + func Load(mode int, configFile string, flagSet *flag.FlagSet) (Config, error) + type Debug struct + Listen string + Pprof bool + type HTTP struct + AssetPath string + BaseURL *url.URL + CallbackTemplate *template.Template + CertFile string + Check HTTPCheck + Ciphers string + EnableProxyHeaders bool + KeyFile string + Listen string + Secret Secret + TLS bool + type HTTPCheck struct + IPAddr bool + type Log struct + Format string + Level slog.Level + VPNClientIP bool + type OAuth2 struct + AuthStyle OAuth2AuthStyle + AuthorizeParams string + Client OAuth2Client + Endpoints OAuth2Endpoints + Issuer *url.URL + Nonce bool + PKCE bool + Provider string + Refresh OAuth2Refresh + Scopes StringSlice + Validate OAuth2Validate + type OAuth2AuthStyle oauth2.AuthStyle + func (s *OAuth2AuthStyle) UnmarshalText(text []byte) error + func (s OAuth2AuthStyle) AuthStyle() oauth2.AuthStyle + func (s OAuth2AuthStyle) MarshalText() ([]byte, error) + func (s OAuth2AuthStyle) String() string + type OAuth2Client struct + ID string + Secret Secret + type OAuth2Endpoints struct + Auth *url.URL + Discovery *url.URL + Token *url.URL + type OAuth2Refresh struct + Enabled bool + Expires time.Duration + Secret Secret + UseSessionID bool + ValidateUser bool + type OAuth2Validate struct + Acr StringSlice + CommonName string + CommonNameCaseSensitive bool + Groups StringSlice + IPAddr bool + Issuer bool + Roles StringSlice + type OpenVPNCommonName struct + EnvironmentVariableName string + Mode OpenVPNCommonNameMode + type OpenVPNCommonNameMode int + const CommonNameModeOmit + const CommonNameModeOmitValue + const CommonNameModePlain + func (s *OpenVPNCommonNameMode) UnmarshalText(text []byte) error + func (s OpenVPNCommonNameMode) MarshalText() ([]byte, error) + func (s OpenVPNCommonNameMode) String() string + type OpenVPNPassthrough struct + Address *url.URL + Enabled bool + Password Secret + SocketGroup string + SocketMode uint + type OpenVpn struct + Addr *url.URL + AuthPendingTimeout time.Duration + AuthTokenUser bool + Bypass OpenVpnBypass + CommonName OpenVPNCommonName + Passthrough OpenVPNPassthrough + Password Secret + type OpenVpnBypass struct + CommonNames StringSlice + type Secret string + func (secret *Secret) UnmarshalText(text []byte) error + func (secret Secret) MarshalText() ([]byte, error) + func (secret Secret) String() string + type StringSlice []string + func (stringSlice *StringSlice) UnmarshalText(text []byte) error + func (stringSlice StringSlice) MarshalText() ([]byte, error)