Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype AccessToken = AccessToken Text
- data App = App {}
- newtype ClientId = ClientId Text
- data ClientPair = ClientPair ClientId ClientSecret
- newtype ClientSecret = ClientSecret Text
- type OAuth2 = StateT TokenPair IO
- data ParseError = ParseError String
- newtype RefreshToken = RefreshToken Text
- data TokenPair = TokenPair AccessToken RefreshToken
- type UpdateTokenPair = TokenPair -> IO ()
Documentation
newtype AccessToken Source #
OAuth2 access token
Instances
Show AccessToken Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types showsPrec :: Int -> AccessToken -> ShowS # show :: AccessToken -> String # showList :: [AccessToken] -> ShowS # |
A web API application
data ClientPair Source #
OAuth2 client ID/client secret pair
Instances
Eq ClientPair Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types (==) :: ClientPair -> ClientPair -> Bool # (/=) :: ClientPair -> ClientPair -> Bool # | |
Show ClientPair Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types showsPrec :: Int -> ClientPair -> ShowS # show :: ClientPair -> String # showList :: [ClientPair] -> ShowS # |
newtype ClientSecret Source #
OAuth2 client secret
Instances
Eq ClientSecret Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types (==) :: ClientSecret -> ClientSecret -> Bool # (/=) :: ClientSecret -> ClientSecret -> Bool # | |
Show ClientSecret Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types showsPrec :: Int -> ClientSecret -> ShowS # show :: ClientSecret -> String # showList :: [ClientSecret] -> ShowS # |
data ParseError Source #
TODO
Instances
Show ParseError Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS # | |
Exception ParseError Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types toException :: ParseError -> SomeException # fromException :: SomeException -> Maybe ParseError # displayException :: ParseError -> String # |
newtype RefreshToken Source #
OAuth2 refresh token
Instances
Show RefreshToken Source # | |
Defined in Network.HTTP.Req.OAuth2.Internal.Types showsPrec :: Int -> RefreshToken -> ShowS # show :: RefreshToken -> String # showList :: [RefreshToken] -> ShowS # |
OAuth2 access/refresh token pair
type UpdateTokenPair = TokenPair -> IO () Source #
Action invoked in response to update to access/refresh token pair