servant-hmac-auth-0.0.0: Servant authentication with HMAC

Safe HaskellNone
LanguageHaskell2010

Servant.Auth.Hmac.Client

Description

Servant client authentication.

Synopsis

Documentation

newtype HmacClientM a Source #

newtype wrapper over ClientM that signs all outgoing requests automatically.

Constructors

HmacClientM 

Fields

runHmacClient Source #

Arguments

:: (SecretKey -> ByteString -> Signature)

Signing function

-> SecretKey

Secret key to sign all requests

-> ClientEnv 
-> HmacClientM a 
-> IO (Either ServantError a) 

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

Generates a set of client functions for an API.