req-oauth2-0.1.0.0: Provides OAuth2 authentication for use with Req

Safe HaskellNone
LanguageHaskell2010

Network.HTTP.Req.OAuth2.Internal.AuthCode

Synopsis

Documentation

newtype AuthCode Source #

Constructors

AuthCode Text 

getAuthCode :: App -> ClientId -> PromptForCallbackUri -> IO AuthCode Source #

Gets OAuth2 authorization code

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

We don't bother with redirect_uri or state since they do not seem to be required.