Modulehoauth2-2.15.2Haskell2010
Network.OAuth2.Experiment.Flows.TokenRequest
- 1 type
- 2 classes
- 1 value
- Packagehoauth2-2.15.2
- Exports4
- LanguageHaskell2010
- LicenceMIT
- SourceTokenRequest.hs
Methods
Instances5HasClientAuthenticationMethod
HasClientAuthenticationMethod AuthorizationCodeApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.AuthorizationCodeHasClientAuthenticationMethod ClientCredentialsApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.ClientCredentialsHasClientAuthenticationMethod DeviceAuthorizationApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.DeviceAuthorizationHasClientAuthenticationMethod JwtBearerApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.JwtBearerHasClientAuthenticationMethod ResourceOwnerPasswordApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.ResourceOwnerPassword
Only Authorization Code Grant involves a Exchange Token (Authorization Code). ResourceOwnerPassword and Client Credentials make token request directly.
Associated types
data family TokenRequest atype family ExchangeTokenInfo a
Methods
mkTokenRequestParam :: a -> ExchangeTokenInfo a -> TokenRequest aOnly 'AuthorizationCode flow (but not resource owner password nor client credentials) will use
ExchangeTokenin 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
HasTokenRequest AuthorizationCodeApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.AuthorizationCodeHasTokenRequest ClientCredentialsApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.ClientCredentialsHasTokenRequest DeviceAuthorizationApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.DeviceAuthorizationHasTokenRequest JwtBearerApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.JwtBearerHasTokenRequest ResourceOwnerPasswordApplicationDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Grants.ResourceOwnerPassword