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" InteractionRequired Reason = "interaction_required" InvalidClient Reason = "invalid_client" InvalidGrant Reason = "invalid_grant" InvalidRequest Reason = "invalid_request" InvalidRequestObject Reason = "invalid_request_object" InvalidRequestURI Reason = "invalid_request_uri" InvalidScope Reason = "invalid_scope" InvalidToken Reason = "invalid_token" LoginRequired Reason = "login_required" 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.