Documentation ¶
Index ¶
- func AuthMiddleware(a authenticator.Request) func(http.Handler) http.Handler
- func NewOIDCAuthenticator(config *OIDCConfig) (authenticator.Request, error)
- func UserInfoForContext(ctx context.Context) (user.Info, error)
- func WithUserInfoContext(ctx context.Context, userInfo user.Info) context.Context
- type OIDCConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func NewOIDCAuthenticator ¶
func NewOIDCAuthenticator(config *OIDCConfig) (authenticator.Request, error)
NewOIDCAuthenticator returns OIDC authenticator
Types ¶
type OIDCConfig ¶
type OIDCConfig struct { IssuerURL string ClientID string CAFile string `envconfig:"optional"` UsernameClaim string `envconfig:"default=email"` UsernamePrefix string `envconfig:"optional"` GroupsClaim string `envconfig:"default=groups"` GroupsPrefix string `envconfig:"optional"` SupportedSigningAlgs []string `envconfig:"default=RS256"` }
OIDCConfig represents configuration used for JWT request authentication
Click to show internal directories.
Click to hide internal directories.