Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAMAuthRepository ¶
type IAMAuthRepository interface { AuthenticatePassword(username string, password string) (iamToken, uaaToken Token, err error) AuthenticateSSO(passcode string) (iamToken, uaaToken Token, err error) AuthenticateAPIKey(apiKey string) (iamToken, uaaToken Token, err error) RefreshToken(refreshToken string) (iamToken, uaaToken Token, err error) LinkAccounts(refreshToken string, accounts core_config.AccountsInfo) (iamToken, uaaToken Token, err error) }
func NewIAMAuthRepository ¶
func NewIAMAuthRepository(config IAMConfig, client *rest.Client) IAMAuthRepository
type IAMConfig ¶
type IAMConfig struct { // the token endpoint. for example: https://iam.example.com/indentity/token TokenEndpoint string }
type InvalidTokenError ¶
type InvalidTokenError struct {
Description string
}
func NewInvalidTokenError ¶
func NewInvalidTokenError(description string) *InvalidTokenError
func (*InvalidTokenError) Error ¶
func (e *InvalidTokenError) Error() string
type ServerError ¶
func NewServerError ¶
func NewServerError(statusCode int, errorCode string, description string) *ServerError
func (*ServerError) Error ¶
func (s *ServerError) Error() string
type UAARepository ¶
type UAARepository interface { AuthenticatePassword(username string, password string) (Token, error) AuthenticatePasswordAndConnectIAM(username string, password string, iamAccessToken string) (Token, error) AuthenticateSSO(passcode string) (Token, error) AuthenticateSSOAndConnectIAM(passcode string, iamAccessToken string) (Token, error) AuthenticateAPIKey(apiKey string) (Token, error) AuthenticateWithIAMToken(iamAccessToken string) (Token, error) DisconnectIAM(uaaToken string) error RefreshToken(uaaRefreshToken string) (Token, error) }
func NewUAARepository ¶
func NewUAARepository(config core_config.Reader, client *rest.Client) UAARepository
Click to show internal directories.
Click to hide internal directories.