-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Server-side HTTP Digest (RFC2617) in the CGI monad -- -- For web applications running in a CGI monad container, this module -- provides a simple interface to generate HTTP Digest authentication -- challenges and to process the responses from clients. It implements -- RFC2617, but accepts the quirky responses generated by some -- non-compliant browsers. -- -- This module was originally implemented for Serialist -- (http://serialist.net) and is deployed there in a FastCGI -- environment using the fastcgi package. It has been tested against a -- variety of browsers, including Firefox, Safari, IE, Opera, and others. @package hdigest @version 1.0 module Network.HTTP.Digest authenticateDigest :: (MonadCGI m, MonadIO m) => String -> (String -> m (Maybe (u, String))) -> m (DigestResult u) data DigestResult u DigestSuccess :: u -> DigestResult u DigestBadRequest :: String -> DigestResult u DigestStale :: DigestResult u DigestIncorrect :: DigestResult u DigestMissing :: DigestResult u makeHA1 :: String -> String -> String -> String setDigestRequired :: (MonadCGI m, MonadIO m) => String -> Bool -> m ()