openid- An implementation of the OpenID-2.0 spec.

MaintainerStability :
Safe HaskellNone






General Helpers

readMaybe :: Read a => String -> Maybe aSource

Read, maybe.

breaks :: (a -> Bool) -> [a] -> [[a]]Source

Break up a string by a predicate.

split :: (a -> Bool) -> [a] -> ([a], [a])Source

Spit a list into a pair, removing the element that caused the predicate to succeed.

roll :: [Word8] -> IntegerSource

Build an Integer out of a big-endian list of bytes.

unroll :: Integer -> [Word8]Source

Turn an Integer into a big-endian list of bytes

btwoc :: [Word8] -> [Word8]Source

Pad out a list of bytes to represent a positive, big-endian list of bytes.

OpenID Defaults

defaultModulus :: IntegerSource

Default modulus for Diffie-Hellman key exchange.

openidNS :: StringSource

The OpenID-2.0 namespace.

MonadLib helpers

readM :: (ExceptionM m e, Read a) => e -> String -> m aSource

Read inside of an Exception monad

lookupParam :: ExceptionM m Error => String -> Params -> m StringSource

Lookup parameters inside an exception handling monad

readParam :: (Read a, ExceptionM m Error) => String -> Params -> m aSource

Read a field

withResponse :: ExceptionM m Error => Either ConnError (Response String) -> (Response String -> m a) -> m aSource

Make an HTTP request, and run a function with a successful response