Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype AuthCode = AuthCode Text
- type PromptForCallbackUri = URI -> IO URI
- getAuthCode :: App -> ClientId -> PromptForCallbackUri -> IO AuthCode
Documentation
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.