| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Auth.Hmac.Client
Description
Servant client authentication.
Synopsis
- newtype HmacClientM a = HmacClientM {
- runHmacClientM :: ReaderT HmacSettings ClientM a
- runHmacClient :: (SecretKey -> ByteString -> Signature) -> SecretKey -> ClientEnv -> HmacClientM a -> IO (Either ServantError a)
- hmacClient :: forall api. HasClient HmacClientM api => Client HmacClientM api
Documentation
newtype HmacClientM a Source #
newtype wrapper over ClientM that signs all outgoing requests
automatically.
Constructors
| HmacClientM | |
Fields
| |
Instances
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.