Documentation ¶
Index ¶
- type ExternalAuthenticationError
- type GrantType
- type InvalidGrantTypeError
- type InvalidTokenError
- type RefreshTokenExpiryError
- type ResponseType
- type ServerError
- type SessionInactiveError
- type TokenOption
- type TokenRequest
- func (r *TokenRequest) GetTokenParam(key string) string
- func (r *TokenRequest) GrantType() GrantType
- func (r *TokenRequest) ResponseTypes() []ResponseType
- func (r *TokenRequest) SetResponseType(responseTypes ...ResponseType)
- func (r *TokenRequest) SetTokenParam(key, value string)
- func (r *TokenRequest) SetValue(v url.Values)
- func (r *TokenRequest) WithOption(opt TokenOption) *TokenRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalAuthenticationError ¶ added in v0.2.2
func (ExternalAuthenticationError) Error ¶ added in v0.2.2
func (e ExternalAuthenticationError) Error() string
type InvalidGrantTypeError ¶ added in v0.2.0
type InvalidGrantTypeError struct {
Description string
}
func NewInvalidGrantTypeError ¶ added in v0.2.0
func NewInvalidGrantTypeError(description string) *InvalidGrantTypeError
func (*InvalidGrantTypeError) Error ¶ added in v0.2.0
func (e *InvalidGrantTypeError) Error() string
type InvalidTokenError ¶
type InvalidTokenError struct {
Description string
}
func NewInvalidTokenError ¶
func NewInvalidTokenError(description string) *InvalidTokenError
func (*InvalidTokenError) Error ¶
func (e *InvalidTokenError) Error() string
type RefreshTokenExpiryError ¶ added in v0.4.0
type RefreshTokenExpiryError struct {
Description string
}
RefreshTokenExpiryError is an error when provided refresh token expires. This error normally requires the client to re-login.
func NewRefreshTokenExpiryError ¶ added in v0.4.0
func NewRefreshTokenExpiryError(description string) *RefreshTokenExpiryError
NewRefreshTokenExpiryError creates a RefreshTokenExpiryError
func (*RefreshTokenExpiryError) Error ¶ added in v0.4.0
func (e *RefreshTokenExpiryError) Error() string
type ResponseType ¶ added in v0.2.2
type ResponseType string
func (ResponseType) String ¶ added in v0.2.2
func (r ResponseType) String() string
type ServerError ¶
func NewServerError ¶
func NewServerError(statusCode int, errorCode string, description string) *ServerError
func (*ServerError) Error ¶
func (s *ServerError) Error() string
type SessionInactiveError ¶ added in v0.8.0
type SessionInactiveError struct {
Description string
}
func NewSessionInactiveError ¶ added in v0.8.0
func NewSessionInactiveError(description string) *SessionInactiveError
func (*SessionInactiveError) Error ¶ added in v0.8.0
func (e *SessionInactiveError) Error() string
type TokenOption ¶ added in v0.2.2
type TokenOption func(r *TokenRequest)
func SetResponseType ¶ added in v0.2.2
func SetResponseType(responseTypes ...ResponseType) TokenOption
func SetTokenParam ¶ added in v0.2.2
func SetTokenParam(key, value string) TokenOption
type TokenRequest ¶ added in v0.2.2
type TokenRequest struct {
// contains filtered or unexported fields
}
func NewTokenRequest ¶ added in v0.2.2
func NewTokenRequest(grantType GrantType) *TokenRequest
func (*TokenRequest) GetTokenParam ¶ added in v0.6.8
func (r *TokenRequest) GetTokenParam(key string) string
func (*TokenRequest) GrantType ¶ added in v0.2.2
func (r *TokenRequest) GrantType() GrantType
func (*TokenRequest) ResponseTypes ¶ added in v0.2.2
func (r *TokenRequest) ResponseTypes() []ResponseType
func (*TokenRequest) SetResponseType ¶ added in v0.2.2
func (r *TokenRequest) SetResponseType(responseTypes ...ResponseType)
func (*TokenRequest) SetTokenParam ¶ added in v0.2.2
func (r *TokenRequest) SetTokenParam(key, value string)
func (*TokenRequest) SetValue ¶ added in v0.2.2
func (r *TokenRequest) SetValue(v url.Values)
func (*TokenRequest) WithOption ¶ added in v0.2.2
func (r *TokenRequest) WithOption(opt TokenOption) *TokenRequest
Click to show internal directories.
Click to hide internal directories.