Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache caches auth service data from a provider.
func NewCacheWithTimeProvider ¶
func NewCacheWithTimeProvider(prov auth.Provider, tp TimeProvider) *Cache
NewCacheWithTimeProvider creates a new auth cache with the given time provider. This is primarily useful for testing.
func (*Cache) ValidateUserNames ¶
ValidateUserNames validates that user names exist in the auth system. token can be any valid token - it's used only to look up the userName. Returns InvalidToken error and InvalidUserError.
type TimeProvider ¶
TimeProvider provides the current time.
Click to show internal directories.
Click to hide internal directories.