Documentation ¶
Index ¶
- func New(ctx context.Context, name string, config login.OIDCConfig, path string, ...) (tokenauth.Source, func() error, error)
- func NewGoogleFromServiceAccount(ctx context.Context, name string, config login.OIDCConfig, ...) (tokenauth.Source, error)
- func NewWithCache(ctx context.Context, name string, cache login.Cache, ...) (tokenauth.Source, func() error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, name string, config login.OIDCConfig, path string, callbackSrv *login.CallbackServer) (tokenauth.Source, func() error, error)
New constructs OIDC tokenauth.Source that optionally supports logging 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 NewGoogleFromServiceAccount ¶
func NewGoogleFromServiceAccount(ctx context.Context, name string, config login.OIDCConfig, googleServiceAccountJSON []byte) (tokenauth.Source, error)
NewGoogleFromServiceAccount constructs tokenauth.Source that is able to return valid OIDC token from given Google Service Account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.