Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client handles the OIDC setup at startup and provides a middleware to be used with the goswagger API
func New ¶
func New(cfg config.Config, nsExister namespaces.Exister, namespacesEnabled bool, logger logrus.FieldLogger) (*Client, error)
New OIDC Client: It tries to retrieve the JWKs at startup (or fails), it provides a middleware which can be used at runtime with a go-swagger style API.
nsExister is consulted only on namespace-enabled clusters to validate the namespace claim. namespacesEnabled is the cluster-level flag passed in from the caller.
Click to show internal directories.
Click to hide internal directories.