hoauth2-2.15.0: Haskell OAuth2 authentication client
Safe HaskellNone
LanguageHaskell2010

Network.OAuth2

Description

A lightweight oauth2 Haskell binding. See Readme for more details

Synopsis

Documentation

data OAuth2 Source #

Query Parameter Representation

Instances

Instances details
Show OAuth2 Source # 
Instance details

Defined in Network.OAuth2.Internal

Default OAuth2 Source # 
Instance details

Defined in Network.OAuth2.Internal

Methods

def :: OAuth2 #

Eq OAuth2 Source # 
Instance details

Defined in Network.OAuth2.Internal

Methods

(==) :: OAuth2 -> OAuth2 -> Bool #

(/=) :: OAuth2 -> OAuth2 -> Bool #

newtype IdToken Source #

Constructors

IdToken 

Fields

Instances

Instances details
FromJSON IdToken Source # 
Instance details

Defined in Network.OAuth2.Internal

ToJSON IdToken Source # 
Instance details

Defined in Network.OAuth2.Internal

Show IdToken Source # 
Instance details

Defined in Network.OAuth2.Internal

Eq IdToken Source # 
Instance details

Defined in Network.OAuth2.Internal

Methods

(==) :: IdToken -> IdToken -> Bool #

(/=) :: IdToken -> IdToken -> Bool #

type PostBody = [(ByteString, ByteString)] Source #

Type synonym of post body content

type QueryParams = [(ByteString, ByteString)] Source #

Type sysnonym of request query params

addDefaultRequestHeaders :: Request -> Request Source #

Set several header values: + userAgennt : "hoauth2" + accept : "application/json"

Authorization Requset

authorizationUrlWithParams :: QueryParams -> OAuth2 -> URI Source #

Prepare the authorization URL. Redirect to this URL asking for user interactive authentication.

Since: 2.6.0

Token Request

OAuth'ed http client utilities