hsoz-0.0.1.0: Iron, Hawk, Oz: Web auth protocols

Safe HaskellNone
LanguageHaskell2010

Network.Hawk.Server.Nonce

Contents

Description

Nonces prevent replaying of requests. This module provides a nonce validation function which stores previous requests while they are fresh.

Synopsis

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.

Orphan instances

Hashable Key Source # 

Methods

hashWithSalt :: Int -> Key -> Int #

hash :: Key -> Int #