hoauth2-1.8.7: Haskell OAuth2 authentication client

Safe Haskell | None
Language | Haskell2010

Network.OAuth.OAuth2.TokenRequest

Synopsis

- data Errors
  - = InvalidRequest
  - | InvalidClient
  - | InvalidGrant
  - | UnauthorizedClient
  - | UnsupportedGrantType
  - | InvalidScope

# Documentation

data Errors Source #

Token Error Responses https://tools.ietf.org/html/rfc6749#section-5.2

Constructors

InvalidRequest |
InvalidClient |
InvalidGrant |
UnauthorizedClient |
UnsupportedGrantType |
InvalidScope |

Instances

Eq Errors Source # |
Instance details Defined in Network.OAuth.OAuth2.TokenRequest Methods (==) :: Errors -> Errors -> Bool Source # (/=) :: Errors -> Errors -> Bool Source #
Show Errors Source # |
Instance details Defined in Network.OAuth.OAuth2.TokenRequest Methods showsPrec :: Int -> Errors -> ShowS Source # show :: Errors -> String Source # showList :: [Errors] -> ShowS Source #
Generic Errors Source # |
Instance details Defined in Network.OAuth.OAuth2.TokenRequest Associated Types type Rep Errors :: Type -> Type Source # Methods from :: Errors -> Rep Errors x Source # to :: Rep Errors x -> Errors Source #
ToJSON Errors Source # |
Instance details Defined in Network.OAuth.OAuth2.TokenRequest Methods toJSON :: Errors -> Value Source # toEncoding :: Errors -> Encoding Source # toJSONList :: [Errors] -> Value Source # toEncodingList :: [Errors] -> Encoding Source #
FromJSON Errors Source # |
Instance details Defined in Network.OAuth.OAuth2.TokenRequest Methods parseJSON :: Value -> Parser Errors Source # parseJSONList :: Value -> Parser [Errors] Source #
type Rep Errors Source # |

Instance details

Defined in Network.OAuth.OAuth2.TokenRequest

type Rep Errors = D1 (MetaData "Errors" "Network.OAuth.OAuth2.TokenRequest" "hoauth2-1.8.7-6VzKkSnst0c8UuTdCN8ZZS" False) ((C1 (MetaCons "InvalidRequest" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "InvalidClient" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "InvalidGrant" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "UnauthorizedClient" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "UnsupportedGrantType" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "InvalidScope" PrefixI False) (U1 :: Type -> Type))))