Documentation
¶
Overview ¶
Package tokenmanager provides tokens for authenticating to S2A.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenManager ¶
type AccessTokenManager interface { // DefaultToken returns a token that an application with no specified local // identity must use to authenticate to S2A. DefaultToken() (token string, err error) // Token returns a token that an application with local identity equal to // identity must use to authenticate to S2A. Token(identity interface{}) (token string, err error) }
AccessTokenManager manages tokens for authenticating to S2A.
func NewSingleTokenAccessTokenManager ¶
func NewSingleTokenAccessTokenManager() (AccessTokenManager, error)
NewSingleTokenAccessTokenManager returns a new AccessTokenManager instance that will always manage the same token.
The token to be managed is read from the s2aAccessTokenEnvironmentVariable environment variable. If this environment variable is not set, then this function returns an error.
Click to show internal directories.
Click to hide internal directories.