Documentation
¶
Overview ¶
Package cache provides cached token sources for authentication flows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachingTokenSource ¶
type CachingTokenSource interface {
oauth2.TokenSource
// InvalidateToken is called when the token is rejected by the resource server.
InvalidateToken() error
}
A CachingTokenSource is anything that can return a token, and is backed by a cache.
func NewDefaultTokenCache ¶
func NewDefaultTokenCache(store store.Store, audience string, refresher auth.AuthorizationGrantRefresher) (CachingTokenSource, error)
NewDefaultTokenCache creates a default token cache with the given store and refresher.
Click to show internal directories.
Click to hide internal directories.