Documentation ¶
Index ¶
- Variables
- type LoginResource
- type Repository
- type TokenRefresher
- type UAARepository
- func (uaa UAARepository) Authenticate(credentials map[string]string) error
- func (uaa UAARepository) Authorize(token string) (string, error)
- func (uaa UAARepository) DumpRequest(req *http.Request)
- func (uaa UAARepository) DumpResponse(res *http.Response)
- func (uaa UAARepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]coreconfig.AuthPrompt, apiErr error)
- func (uaa UAARepository) RefreshAuthToken() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPreventRedirect = errors.New("prevent-redirect")
Functions ¶
This section is empty.
Types ¶
type LoginResource ¶
type Repository ¶
type Repository interface { net.RequestDumperInterface RefreshAuthToken() (updatedToken string, apiErr error) Authenticate(credentials map[string]string) (apiErr error) Authorize(token string) (string, error) GetLoginPromptsAndSaveUAAServerURL() (map[string]coreconfig.AuthPrompt, error) }
type TokenRefresher ¶
type UAARepository ¶
type UAARepository struct {
// contains filtered or unexported fields
}
func NewUAARepository ¶
func NewUAARepository(gateway net.Gateway, config coreconfig.ReadWriter, dumper net.RequestDumper) UAARepository
func (UAARepository) Authenticate ¶
func (uaa UAARepository) Authenticate(credentials map[string]string) error
func (UAARepository) DumpRequest ¶
func (uaa UAARepository) DumpRequest(req *http.Request)
func (UAARepository) DumpResponse ¶
func (uaa UAARepository) DumpResponse(res *http.Response)
func (UAARepository) GetLoginPromptsAndSaveUAAServerURL ¶
func (uaa UAARepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]coreconfig.AuthPrompt, apiErr error)
func (UAARepository) RefreshAuthToken ¶
func (uaa UAARepository) RefreshAuthToken() (string, error)
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.