Documentation ¶
Index ¶
- Variables
- type AuthenticationRepository
- type LoginResource
- type TokenRefresher
- type UAAAuthenticationRepository
- func (uaa UAAAuthenticationRepository) Authenticate(credentials map[string]string) error
- func (uaa UAAAuthenticationRepository) Authorize(token string) (string, error)
- func (uaa UAAAuthenticationRepository) DumpRequest(req *http.Request)
- func (uaa UAAAuthenticationRepository) DumpResponse(res *http.Response)
- func (uaa UAAAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]coreconfig.AuthPrompt, apiErr error)
- func (uaa UAAAuthenticationRepository) RefreshAuthToken() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPreventRedirect = errors.New("prevent-redirect")
Functions ¶
This section is empty.
Types ¶
type AuthenticationRepository ¶
type AuthenticationRepository 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 LoginResource ¶
type TokenRefresher ¶
type UAAAuthenticationRepository ¶
type UAAAuthenticationRepository struct {
// contains filtered or unexported fields
}
func NewUAAAuthenticationRepository ¶
func NewUAAAuthenticationRepository(gateway net.Gateway, config coreconfig.ReadWriter, dumper net.RequestDumper) UAAAuthenticationRepository
func (UAAAuthenticationRepository) Authenticate ¶
func (uaa UAAAuthenticationRepository) Authenticate(credentials map[string]string) error
func (UAAAuthenticationRepository) Authorize ¶
func (uaa UAAAuthenticationRepository) Authorize(token string) (string, error)
func (UAAAuthenticationRepository) DumpRequest ¶
func (uaa UAAAuthenticationRepository) DumpRequest(req *http.Request)
func (UAAAuthenticationRepository) DumpResponse ¶
func (uaa UAAAuthenticationRepository) DumpResponse(res *http.Response)
func (UAAAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL ¶
func (uaa UAAAuthenticationRepository) GetLoginPromptsAndSaveUAAServerURL() (prompts map[string]coreconfig.AuthPrompt, apiErr error)
func (UAAAuthenticationRepository) RefreshAuthToken ¶
func (uaa UAAAuthenticationRepository) 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.