authentication

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalAuthenticationError added in v0.2.2

type ExternalAuthenticationError struct {
	ErrorCode    string
	ErrorMessage string
}

func (ExternalAuthenticationError) Error added in v0.2.2

type GrantType added in v0.2.2

type GrantType string

func (GrantType) String added in v0.2.2

func (g GrantType) String() 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

type ServerError struct {
	StatusCode  int
	ErrorCode   string
	Description string
}

func NewServerError

func NewServerError(statusCode int, errorCode string, description string) *ServerError

func (*ServerError) Error

func (s *ServerError) 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) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL