Query Parameter Representation
Modulehoauth2-2.14.3Haskell2010
Network.OAuth.OAuth2
A lightweight oauth2 Haskell binding. See Readme for more details
- 9 types
- 8 values
- Packagehoauth2-2.14.3
- Exports17
- LanguageHaskell2010
- LicenceMIT
- SourceOAuth2.hs
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.14.3 · Network.OAuth.OAuth2.InternalShow ClientAuthenticationMethodDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.Internal
Constructors
Instances5Eq, Show, FromJSON, ToJSON, ToQueryParam
Eq RefreshTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalShow RefreshTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalFromJSON RefreshTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalToJSON RefreshTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalToQueryParam RefreshTokenDefined in hoauth2-2.14.3 · Network.OAuth2.Experiment.Types
Constructors
OAuth2TokenaccessToken :: AccessTokenrefreshToken :: Maybe RefreshTokenExists when
offline_accessscope is in the Authorization Request and the provider supports Refresh Access Token.expiresIn :: Maybe InttokenType :: Maybe TextSee https://www.rfc-editor.org/rfc/rfc6749#section-5.1. It's required per spec. But OAuth2 provider implementation are vary. Maybe will remove Maybe in future release.
idToken :: Maybe IdTokenExists when
openidscope is in the Authorization Request and the provider supports OpenID protocol.scope :: Maybe TextrawResponse :: Object
Instances5Eq, Show, Binary, FromJSON, ToJSON
Eq OAuth2TokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalShow OAuth2TokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalBinary OAuth2TokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalFromJSON OAuth2TokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalParse JSON data into OAuth2Token
ToJSON OAuth2TokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.Internal
Type synonym of post body content
Authorization Code
Constructors
Instances4Show, FromJSON, ToJSON, ToQueryParam
Show ExchangeTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalFromJSON ExchangeTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalToJSON ExchangeTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalToQueryParam ExchangeTokenDefined in hoauth2-2.14.3 · Network.OAuth2.Experiment.Types
Constructors
Instances4Eq, Show, FromJSON, ToJSON
Eq AccessTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalShow AccessTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalFromJSON AccessTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.InternalToJSON AccessTokenDefined in hoauth2-2.14.3 · Network.OAuth.OAuth2.Internal
Instances4Eq, Show, FromJSON, ToJSON
Type sysnonym of request query params
Authorization Requset
2 declarationsPrepare the authorization URL. Redirect to this URL asking for user interactive authentication.