errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: BSD-3-Clause Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

OAuthErrorTypeMap relates an OAuthError to an apierrors ErrorType

Functions

This section is empty.

Types

type OAuthErrorType

type OAuthErrorType string

OAuthErrorType represents a type of OAuthError returned from the Connector to the provider.

var AccessDeniedErrorType OAuthErrorType = "access_denied"

AccessDeniedErrorType represents an error where the server has denied the request.

XXX: This error is only ever returned to a user-agent during a request for an authorization code.

var InvalidClientErrorType OAuthErrorType = "invalid_client"

InvalidClientErrorType represents an error where the authentication has failed.

var InvalidGrantErrorType OAuthErrorType = "invalid_grant"

InvalidGrantErrorType represents an error where the provided authorization grant such as a authorization code or refresh token is invalid, expired, or does not match the redirection uri.

var InvalidRequestErrorType OAuthErrorType = "invalid_request"

InvalidRequestErrorType represents an error where the request is missing a required parameter, invalid parameter value, or is otherwise malformed.

var InvalidScopeErrorType OAuthErrorType = "invalid_scope"

InvalidScopeErrorType represents an error where The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.

var ServerErrorErrorType OAuthErrorType = "server_error"

ServerErrorErrorType represents an error where the server encountered an unexpected condition that prevented it from fulfilling the request.

Used for relaying "something went horribly wrong" during authorization code to token exchange or during a user agent request.

var UnauthorizedClientErrorType OAuthErrorType = "unauthorized_client"

UnauthorizedClientErrorType represents an error where the client is not authorized to use a specific grant type.

var UnsupportedGrantErrorType OAuthErrorType = "unsupported_grant_type"

UnsupportedGrantErrorType represents an error where the client has requested a grant type not supported by the server.

func (OAuthErrorType) String

func (t OAuthErrorType) String() string

String returns the string representation of this error type

Jump to

Keyboard shortcuts

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