HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleauthenticate-oauth-1.7Haskell2010

Web.Authenticate.OAuth.IO

Deprecated. This module is deprecated; rewrite your code using MonadResource

This Module provides interface for the instance of MonadIO instead of MonadIO. What this module do is just adding withManager or runResourceT.

  • 6 types
  • 42 values
datadata OAuth
#

Data type for OAuth client (consumer).

The constructor for this data type is not exposed. Instead, you should use the def method or newOAuth function to retrieve a default instance, and then use the records below to make modifications. This approach allows us to add configuration options without breaking backwards compatibility.

Instances5Eq, Data, Read, Show, Default
  • Eq OAuthDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Data OAuthDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Read OAuthDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Show OAuthDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Default OAuthDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
methoddef :: a
#

The default value for this type.

valuenewOAuth :: OAuth
#

Default value for OAuth datatype. You must specify at least oauthServerName, URIs and Tokens.

datadata OAuthVersion
#

Constructors

  • OAuth10

    OAuth protocol ver 1.0 (no oauth_verifier; differs from RFC 5849).

  • OAuth10a

    OAuth protocol ver 1.0a. This corresponds to community's 1.0a spec and RFC 5849.

Instances6Enum, Eq, Data, Ord, Read, Show
newtypenewtype Credential
#

Data type for credential.

Instances5Eq, Data, Ord, Read, Show
  • Eq CredentialDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Data CredentialDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Ord CredentialDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Read CredentialDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
  • Show CredentialDefined in authenticate-oauth-1.7 · Web.Authenticate.OAuth
valueauthorizeUrl'
  1. :: (OAuth -> Credential -> SimpleQuery)
  2. -> OAuth

    OAuth Application

  3. -> Credential

    Temporary Credential (Request Token & Secret)

  4. -> String

    URL to authorize

#

Convert OAuth and Credential to URL to authorize. This takes function to choice parameter to pass to the server other than oauth_callback or oauth_token.

valueaddAuthBody :: a -> Credential -> Request -> Request
#

Place the authentication information in a URL encoded body instead of the Authorization header.

Note that the first parameter is used for realm in addAuthHeader, and this function needs the same type. The parameter, however, is unused.

Since 1.5.1