| Safe Haskell | Safe-Infered |
|---|
Network.OAuth2.OAuth2
- data OAuth2 = OAuth2 {}
- data AccessToken = AccessToken {}
- data OAuthException = OAuthException String
- authorizationUrl :: OAuth2 -> URI
- accessTokenUrl :: OAuth2 -> ByteString -> (URI, PostBody)
Documentation
Query Parameter Representation
Constructors
| OAuth2 | |
data AccessToken Source
The gained Access Token. Use Data.Aeson.decode to decode string to AccessToken.
Constructors
| AccessToken | |
Fields | |
Instances
authorizationUrl :: OAuth2 -> URISource
Prepare the authorization URL. Redirect to this URL asking for user interactive authentication.
Arguments
| :: OAuth2 | |
| -> ByteString | access code gained via authorization URL |
| -> (URI, PostBody) | access token request URL plus the request body. |
Prepare access token URL and the request body query.