Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCachePath = "$HOME/.oidc_keys"
DefaultCachePath is default path for OIDC tokens.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a oidc caching structure that stores all tokens on disk. Tokens cache files are named after clientID and arg[0]. NOTE: There is no logic for cleaning cache in case of change in clientID. NOTE: There is no logic for caching configuration as well.
func NewCache ¶
func NewCache(path string, cfg login.OIDCConfig) *Cache
NewTokenCache constructs disk cache.
Click to show internal directories.
Click to hide internal directories.