Documentation ¶
Index ¶
- func Cleanup(sso *apiv1.SSO, serviceName string, serviceAccount string) error
- func ConvertHostsToRedirectURLs(hosts []string, sso *apiv1.SSO) []string
- func Expose(sso *apiv1.SSO, serviceName string, serviceAccount string) error
- func FakeRedirectURL() string
- func GenerateCookieKey() (string, error)
- func RedirectURL(URL string) string
- func Update(proxy *Proxy, sso *apiv1.SSO, client *api.Client, cookieSecret string) error
- type Config
- type Cookie
- type ExposeConfig
- type Proxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertHostsToRedirectURLs ¶
ConvertHostsToRedirectURLs converts a list of host to proxy redirect URLs
func Expose ¶
Expose executes the exposecontroller as a Job in order publicly expose the SSO service
func FakeRedirectURL ¶
func FakeRedirectURL() string
FakeRedirectURL builds a fake redirect URL for oauth2 proxy
func GenerateCookieKey ¶ added in v1.0.13
GenerateCookieKey generates a random key which used to sign the SSO cookie
func RedirectURL ¶
RedirectURL build the redirect URL for oauth2 proxy
Types ¶
type Config ¶
type Config struct { Port int32 ClientID string ClientSecret string OIDCIssuerURL string RedirectURL string LoginURL string RedeemURL string Upstream string ForwardToken bool Cookie Cookie }
Config holds the configuration for oauth2_proxy
type Cookie ¶
type Cookie struct { Name string Secret string Domain string Expire string Refresh string Secure bool HTTPOnly bool }
Cookie holds the configuration for oauth2_proxy cookie
type ExposeConfig ¶
type ExposeConfig struct { Domain string `yaml:"domain,omitempty" json:"domain"` Exposer string `yaml:"exposer" json:"exposer"` PathMode string `yaml:"path-mode" json:"path_mode"` HTTP bool `yaml:"http" json:"http"` TLSAcme bool `yaml:"tls-acme" json:"tls_acme"` Services []string `yaml:"services,omitempty" json:"services"` URLTemplate string `yaml:"urltemplate,omitempty" json:"urltemplate"` }
ExposeConfig holds the configuration for exposecontroller
Click to show internal directories.
Click to hide internal directories.