Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerToken ¶
type BearerToken string
A BearerToken is a string that can be set in a HTTP header as proof of the token
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator defines the generation of tokens
func (*Generator) GetToken ¶
func (generator *Generator) GetToken() (BearerToken, error)
GetToken obtains the token from the generator
type GetTokenInterface ¶
type GetTokenInterface interface {
GetToken() (BearerToken, error)
}
GetTokenInterface is the interface used to obtain token from uaa api
func NewTokenGenerator ¶
func NewTokenGenerator(tokenURL, clientID, clientSecret string, client httpclient.HTTPClient, logger lager.Logger) GetTokenInterface
NewTokenGenerator creates and returns a TokenGenerator
Click to show internal directories.
Click to hide internal directories.