Documentation ¶
Index ¶
- Constants
- func APIKeyTokenRequest(apiKey string, opts ...authentication.TokenOption) *authentication.TokenRequest
- func AuthorizationTokenRequest(code string, redirectURI string, opts ...authentication.TokenOption) *authentication.TokenRequest
- func ConnectToIAM(iamAccessToken string) authentication.TokenOption
- func OnetimePasscodeTokenRequest(passcode string, opts ...authentication.TokenOption) *authentication.TokenRequest
- func PasswordTokenRequest(username, password string, opts ...authentication.TokenOption) *authentication.TokenRequest
- func RefreshTokenRequest(refreshToken string, opts ...authentication.TokenOption) *authentication.TokenRequest
- type APIError
- type Config
- type Interface
- type Token
Constants ¶
View Source
const ( GrantTypePassword authentication.GrantType = "password" GrantTypeRefreshToken authentication.GrantType = "refresh_token" GrantTypeAuthorizationCode authentication.GrantType = "authorization_code" GrantTypeIAMToken authentication.GrantType = "iam_token" )
Grant types
View Source
const (
ResponseTypeUAA authentication.ResponseType = "uaa"
)
Response types
Variables ¶
This section is empty.
Functions ¶
func APIKeyTokenRequest ¶
func APIKeyTokenRequest(apiKey string, opts ...authentication.TokenOption) *authentication.TokenRequest
func AuthorizationTokenRequest ¶
func AuthorizationTokenRequest(code string, redirectURI string, opts ...authentication.TokenOption) *authentication.TokenRequest
func ConnectToIAM ¶
func ConnectToIAM(iamAccessToken string) authentication.TokenOption
func OnetimePasscodeTokenRequest ¶
func OnetimePasscodeTokenRequest(passcode string, opts ...authentication.TokenOption) *authentication.TokenRequest
func PasswordTokenRequest ¶
func PasswordTokenRequest(username, password string, opts ...authentication.TokenOption) *authentication.TokenRequest
func RefreshTokenRequest ¶
func RefreshTokenRequest(refreshToken string, opts ...authentication.TokenOption) *authentication.TokenRequest
Types ¶
type Config ¶
func DefaultConfig ¶
Click to show internal directories.
Click to hide internal directories.