Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Dex server address, Optional. DexAddress string // URL of the OpenID Connect issuer IssuerURL string // callback url for OpenID Connect Provider response. RedirectURL string // OAuth2 client ID of this application ClientID string // OAuth2 client secret of this application ClientSecret string // Scope specifies optional requested permissions Scopes []string // UsernameClaim is the JWT field to use as the user's username. UsernameClaim string // GroupsClaim, if specified, causes the OIDCAuthenticator to try to populate the user's // groups with an ID Token field. If the GroupsClaim field is present in an ID Token the value // must be a string or list of strings. GroupsClaim string // backend session store Store sessions.Store // CORS allowed origins AllowedOrigins []string // Whether to use AccessTypeOffline or not OfflineAccess bool }
type DexRewriteURLRoundTripper ¶
type DexRewriteURLRoundTripper struct { DexURL *url.URL T http.RoundTripper }
DexRewriteURLRoundTripper is an HTTP RoundTripper to rewrite HTTP requests to the specified dex server address. This is used when requests Dex in same cluster to avoid from api gateway or external load balancer, which is not always permitted in firewalled/air-gapped networks.
func NewDexRewriteURLRoundTripper ¶
func NewDexRewriteURLRoundTripper(dexAddr string, t http.RoundTripper) DexRewriteURLRoundTripper
NewDexRewriteURLRoundTripper creates a new DexRewriteURLRoundTripper
Click to show internal directories.
Click to hide internal directories.