dex

package
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL