Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProxy ¶
func NewProxy(cfg ProxyConfig) (*httputil.ReverseProxy, error)
NewProxy returns an *httputil.ReverseProxy that proxies requests to a Dex server.
Types ¶
type ProxyConfig ¶
type ProxyConfig struct { // ServerAddr is the address of the target Dex server, beginning with https:// ServerAddr string `envconfig:"DEX_SERVER_ADDRESS" required:"true"` // CACertPath optionally specifies the path to a CA cert file used for // verifying the target Dex server's TLS certificate. CACertPath string `envconfig:"DEX_CA_CERT_PATH"` }
ProxyConfig represents configuration for a reverse proxy to a Dex server.
func ProxyConfigFromEnv ¶
func ProxyConfigFromEnv() ProxyConfig
ProxyConfigFromEnv returns a ProxyConfig populated from environment variables.
Click to show internal directories.
Click to hide internal directories.