Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
OAuth callback error response
Synopsis
- data ErrorResponse = ErrorResponse {}
- erUserMessage :: ErrorResponse -> Text
- data ErrorName
- onErrorResponse :: MonadHandler m => (ErrorResponse -> m a) -> m ()
- unknownError :: Text -> ErrorResponse
Documentation
data ErrorResponse Source #
Instances
Show ErrorResponse Source # | |
Defined in Yesod.Auth.OAuth2.ErrorResponse showsPrec :: Int -> ErrorResponse -> ShowS # show :: ErrorResponse -> String # showList :: [ErrorResponse] -> ShowS # |
erUserMessage :: ErrorResponse -> Text Source #
Textual value suitable for display to a User
onErrorResponse :: MonadHandler m => (ErrorResponse -> m a) -> m () Source #
Check query parameters for an error, if found run the given action
The action is expected to use a short-circuit response function like
, hence this returning permissionDenied
()
.
unknownError :: Text -> ErrorResponse Source #