Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type FetchToken = Manager -> OAuth2 -> ExchangeToken -> IO (OAuth2Result Errors OAuth2Token)
- fetchAccessToken :: Manager -> OAuth2 -> ExchangeToken -> IO (OAuth2Result Errors OAuth2Token)
- fetchAccessToken2 :: Manager -> OAuth2 -> ExchangeToken -> IO (OAuth2Result Errors OAuth2Token)
- type FetchCreds m = Manager -> OAuth2Token -> IO (Creds m)
- dispatchAuthRequest :: Text -> OAuth2 -> FetchToken -> FetchCreds m -> Text -> [Text] -> AuthHandler m TypedContent
Documentation
type FetchToken = Manager -> OAuth2 -> ExchangeToken -> IO (OAuth2Result Errors OAuth2Token) Source #
How to fetch an OAuth2Token
This will be fetchAccessToken
or fetchAccessToken2
fetchAccessToken :: Manager -> OAuth2 -> ExchangeToken -> IO (OAuth2Result Errors OAuth2Token) Source #
fetchAccessToken2 :: Manager -> OAuth2 -> ExchangeToken -> IO (OAuth2Result Errors OAuth2Token) Source #
type FetchCreds m = Manager -> OAuth2Token -> IO (Creds m) Source #
How to take an
and retrieve user credentialsOAuth2Token
:: Text | Name |
-> OAuth2 | Service details |
-> FetchToken | How to get a token |
-> FetchCreds m | How to get credentials |
-> Text | Method |
-> [Text] | Path pieces |
-> AuthHandler m TypedContent |
Dispatch the various OAuth2 handshake routes