Set several header values: + userAgennt : "hoauth2" + accept : "application/json"
Modulehoauth2-2.15.2Haskell2010
Network.OAuth2
A lightweight oauth2 Haskell binding. See Readme for more details
- 8 types
- 6 values
- Packagehoauth2-2.15.2
- Exports14
- LanguageHaskell2010
- LicenceMIT
- SourceOAuth2.hs
Constructors
Instances4Eq, Show, FromJSON, ToJSON
Eq AccessTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalShow AccessTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalFromJSON AccessTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalToJSON AccessTokenDefined in hoauth2-2.15.2 · Network.OAuth2.Internal
How would the Client (RP) authenticate itself?
The client MUST NOT use more than one authentication method in each request. Means use Authorization header or Post body.
See more details
https://www.rfc-editor.org/rfc/rfc6749#section-2.3 https://oauth.net/private-key-jwt/ https://www.rfc-editor.org/rfc/rfc7523.html
Instances2Eq, Show
Eq ClientAuthenticationMethodDefined in hoauth2-2.15.2 · Network.OAuth2.InternalShow ClientAuthenticationMethodDefined in hoauth2-2.15.2 · Network.OAuth2.Internal
Authorization Code
Constructors
Instances4Show, FromJSON, ToJSON, ToQueryParam
Show ExchangeTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalFromJSON ExchangeTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalToJSON ExchangeTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalToQueryParam ExchangeTokenDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Types
Query Parameter Representation
Type synonym of post body content
Type sysnonym of request query params
Constructors
Instances5Eq, Show, FromJSON, ToJSON, ToQueryParam
Eq RefreshTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalShow RefreshTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalFromJSON RefreshTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalToJSON RefreshTokenDefined in hoauth2-2.15.2 · Network.OAuth2.InternalToQueryParam RefreshTokenDefined in hoauth2-2.15.2 · Network.OAuth2.Experiment.Types
Authorization Requset
2 declarationsPrepare the authorization URL. Redirect to this URL asking for user interactive authentication.
Token Request
0 declarationsmodule Network.OAuth2.TokenRequest
OAuth'ed http client utilities
0 declarationsmodule Network.OAuth2.HttpClient