HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehoauth2-2.15.2Haskell2010

Network.OAuth2.Experiment.Flows.TokenRequest

  • 1 type
  • 2 classes
  • 1 value
  • Packagehoauth2-2.15.2
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTokenRequest.hs
classclass HasClientAuthenticationMethod a where
#
Instances5HasClientAuthenticationMethod
datadata NoNeedExchangeToken
#

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

classclass HasClientAuthenticationMethod a => HasTokenRequest a where
#

Associated types

Methods

  • mkTokenRequestParam :: a -> ExchangeTokenInfo a -> TokenRequest a

    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

Instances5HasTokenRequest