Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendRedirect ¶
Types ¶
type Error ¶
type Error struct { Err error `json:"-"` RedirectURI *url.URL `json:"-"` ResponseType string `json:"-"` State string `json:"state,omitempty"` Reason Reason `json:"error"` Description string `json:"error_description,omitempty"` }
func (*Error) StatusCode ¶
type Reason ¶
type Reason string
var ( // OpenID errors AccessDenied Reason = "access_denied" InvalidClient Reason = "invalid_client" InvalidGrant Reason = "invalid_grant" InvalidRequest Reason = "invalid_request" InvalidScope Reason = "invalid_scope" InvalidToken Reason = "invalid_token" RequestNotSupported Reason = "request_not_supported" RequestURINotSupported Reason = "request_uri_not_supported" ServerError Reason = "server_error" UnsupportedGrantType Reason = "unsupported_grant_type" UnsupportedResponseType Reason = "unsupported_response_type" // original errors MethodNotAllowed Reason = "method_not_allowed" PageNotFound Reason = "page_not_found" )
Click to show internal directories.
Click to hide internal directories.