Versions in this module Expand all Collapse all v0 v0.1.2 Apr 30, 2021 Changes in this version + func GetGroups(ctx context.Context) ([]string, bool) + func GetSubject(ctx context.Context) (string, bool) + func GetTenant(ctx context.Context) (string, bool) + func NewMTLS(configs []MTLSConfig) map[string]Middleware + func NewOIDC(logger log.Logger, prefix string, configs []TenantOIDCConfig) (http.Handler, map[string]Middleware, []error) + func WithTenant(next http.Handler) http.Handler + type MTLSConfig struct + CAs []*x509.Certificate + Tenant string + type Middleware func(http.Handler) http.Handler + func WithTenantHeader(header string, tenantIDs map[string]string) Middleware + func WithTenantMiddlewares(middlewareSets ...map[string]Middleware) Middleware + type OIDCConfig struct + ClientID string + ClientSecret string + GroupClaim string + IssuerCA *x509.Certificate + IssuerURL string + RedirectURL string + UsernameClaim string + type OIDCProvider struct + func NewProvider(ctx context.Context, logger log.Logger, cookieName, redirectURL string, ...) (*OIDCProvider, error) + func (p *OIDCProvider) CallbackHandler() http.Handler + func (p *OIDCProvider) LoginHandler() http.Handler + func (p *OIDCProvider) Middleware() Middleware + func (p *OIDCProvider) OIDCProvider() *oidc.Provider + type TenantOIDCConfig struct + Tenant string