Documentation
¶
Index ¶
- func HandleError(w http.ResponseWriter, r *http.Request, err error)
- type Error
- func OAuth2AccessDenied(description string) *Error
- func OAuth2InvalidClient(description string) *Error
- func OAuth2InvalidGrant(description string) *Error
- func OAuth2InvalidRequest(description string) *Error
- func OAuth2InvalidScope(description string) *Error
- func OAuth2UnauthorizedClient(description string) *Error
- func OAuth2UnsupportedGrantType(description string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(w http.ResponseWriter, r *http.Request, err error)
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func OAuth2AccessDenied ¶
OAuth2AccessDenied tells the client the authentication failed e.g. username/password are wrong, or a token has expired and needs reauthentication.
func OAuth2InvalidClient ¶
OAuth2InvalidClient is raised when the client ID is not known.
func OAuth2InvalidGrant ¶
OAuth2InvalidGrant is raised when the requested grant is unknown.
func OAuth2InvalidRequest ¶
OAuth2InvalidRequest indicates a client error.
func OAuth2InvalidScope ¶
OAuth2InvalidScope tells the client it doesn't have the necessary scope to access the resource.
func OAuth2UnauthorizedClient ¶
OAuth2UnauthorizedClient indicates the client is not authorized to perform the requested operation.
func OAuth2UnsupportedGrantType ¶
OAuth2UnsupportedGrantType is raised when the requested grant is not supported.
Click to show internal directories.
Click to hide internal directories.