servant-hmac-auth-0.1.2: Servant authentication with HMAC
Safe HaskellNone
LanguageHaskell2010

Servant.Auth.Hmac.Client

Description

Servant client authentication.

Synopsis

HMAC client settings

data HmacSettings Source #

Environment for HmacClientM. Contains all required settings for hmac client.

Constructors

HmacSettings 

Fields

defaultHmacSettings :: SecretKey -> HmacSettings Source #

Default HmacSettings with the following configuration:

  1. Signing function is signSHA256.
  2. Secret key is provided.
  3. hmacRequestHook is Nothing.

HMAC servant client

newtype HmacClientM a Source #

newtype wrapper over ClientM that signs all outgoing requests automatically.

hmacClient :: forall api. HasClient HmacClientM api => Client HmacClientM api Source #

Generates a set of client functions for an API.