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