Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name string, config login.OIDCConfig, path string, callbackSrv *login.CallbackServer) (tokenauth.Source, func() error, error)
New constructs OIDC tokenauth.Source that optionally supports loging in if callbackSrc is not nil. Additionally it returns clearIDToken function that can be used to clear the token if needed. TokenSource is by default configured to use disk as cache for tokens.
func NewWithCache ¶
func NewWithCache(name string, cache login.Cache, callbackSrv *login.CallbackServer) (tokenauth.Source, func() error, error)
NewWithCache is same as New but allows to pass custom cache e.g k8s one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.