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

Network.HTTP.Req.OAuth2.Internal.Types

Synopsis

Documentation

newtype AccessToken Source #

OAuth2 access token

Constructors

AccessToken Text 

Instances

Instances details
Show AccessToken Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

data App Source #

A web API application

newtype ClientId Source #

OAuth2 client ID

Constructors

ClientId Text 

Instances

Instances details
Eq ClientId Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

Show ClientId Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

data ClientPair Source #

OAuth2 client ID/client secret pair

Instances

Instances details
Eq ClientPair Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

Show ClientPair Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

newtype ClientSecret Source #

OAuth2 client secret

Constructors

ClientSecret Text 

type OAuth2 = StateT TokenPair IO Source #

OAuth2 application monad

newtype RefreshToken Source #

OAuth2 refresh token

Constructors

RefreshToken Text 

Instances

Instances details
Show RefreshToken Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

data TokenPair Source #

OAuth2 access/refresh token pair

Instances

Instances details
Show TokenPair Source # 
Instance details

Defined in Network.HTTP.Req.OAuth2.Internal.Types

type UpdateTokenPair = TokenPair -> IO () Source #

Action invoked in response to update to access/refresh token pair