tokensource

package
v0.0.0-...-c283e9f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTokenNotFound = errors.New("cached token not found")

Functions

func New

func New(issuer, controllerURL string, cache Cache) (oauth2.TokenSource, error)

Types

type Cache

type Cache interface {
	GetToken(issuer, clientID, audience string) (*oauth2.Token, error)
	SetToken(issuer, clientID string, t *oauth2.Token) error
}

func NewTokenCache

func NewTokenCache(dir string) Cache

Jump to

Keyboard shortcuts

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