Safe Haskell | None |
---|---|
Language | Haskell2010 |
Nonces prevent replaying of requests. This module provides a nonce validation function which stores previous requests while they are fresh.
Documentation
nonceOpts :: NominalDiffTime -> IO AuthOpts Source #
Creates an AuthOpts
with a nonce validation function which
remembers previous nonces for as long as they are valid. The skew
parameter determines how long a signed request is valid for.
nonceOptsReq :: NominalDiffTime -> IO AuthReqOpts Source #
Creates an AuthReqOpts
with a nonce validation function
which remembers previous nonces for as long as they are valid. The
skew
parameter determines how long a signed request is valid for.