oidcauth

package
v1.0.0-aputest Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL