hoauth2-2.14.3: Haskell OAuth2 authentication client
Safe HaskellNone
LanguageHaskell2010

Network.OAuth2.Experiment.Flows.TokenRequest

Synopsis

Documentation

data NoNeedExchangeToken Source #

Only Authorization Code Grant involves a Exchange Token (Authorization Code). ResourceOwnerPassword and Client Credentials make token request directly.

Constructors

NoNeedExchangeToken 

class (HasOAuth2Key a, HasTokenRequestClientAuthenticationMethod a) => HasTokenRequest a where Source #

Associated Types

data TokenRequest a Source #

type ExchangeTokenInfo a Source #

Methods

mkTokenRequestParam :: a -> ExchangeTokenInfo a -> TokenRequest a Source #

Only 'AuthorizationCode flow (but not resource owner password nor client credentials) will use ExchangeToken in the token request create type family to be explicit on it. with 'type instance WithExchangeToken a b = b' implies no exchange token v.s. 'type instance WithExchangeToken a b = ExchangeToken -> b' implies needing an exchange token type WithExchangeToken a b

Instances

Instances details
HasTokenRequest AuthorizationCodeApplication Source #

https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3

Instance details

Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode

HasTokenRequest ClientCredentialsApplication Source #

https://www.rfc-editor.org/rfc/rfc6749#section-4.4.2

Instance details

Defined in Network.OAuth2.Experiment.Grants.ClientCredentials

HasTokenRequest DeviceAuthorizationApplication Source #

https://www.rfc-editor.org/rfc/rfc8628#section-3.4

Instance details

Defined in Network.OAuth2.Experiment.Grants.DeviceAuthorization

HasTokenRequest JwtBearerApplication Source # 
Instance details

Defined in Network.OAuth2.Experiment.Grants.JwtBearer

HasTokenRequest ResourceOwnerPasswordApplication Source #

https://www.rfc-editor.org/rfc/rfc6749#section-4.3.2

Instance details

Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword

doTokenRequestInternal Source #

Arguments

:: forall (m :: Type -> Type) a. (MonadIO m, FromJSON a) 
=> ClientAuthenticationMethod 
-> Manager

HTTP connection manager.

-> OAuth2

OAuth options

-> URI

URL

-> PostBody

Request body.

-> ExceptT TokenResponseError m a

Response as ByteString