req-oauth2-0.1.0.1: Provides OAuth2 authentication for use with Req
Safe HaskellNone
LanguageHaskell2010

Network.HTTP.Req.OAuth2.Internal.AccessToken

Synopsis

Documentation

fetchAccessToken :: App -> AccessTokenRequest -> IO (Either String AccessTokenResponse) Source #

Gets OAuth2 access token

Implements standard OAuth2 access token workflow for web server apps as described here.

We don't pass client_secret because that would be silly. We also don't bother with redirect_uri since this do not seem to be required.