-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Authentication methods for Haskell web applications. -- -- Focus is on remote authentication methods, such as OpenID, rpxnow and -- Google. @package authenticate @version 0.0.0 -- | Provides functionality for being an OpenId consumer. module Web.Authenticate.OpenId -- | An openid identifier (ie, a URL). data Identifier Identifier :: String -> Identifier identifier :: Identifier -> String -- | Returns a URL to forward the user to in order to login. getForwardUrl :: (Monad m) => String -> String -> IO (m String) -- | Handle a redirect from an OpenID provider and check that the user -- logged in properly. If it was successfully, returns the openid. -- Otherwise, fails an explanation. authenticate :: (Monad m) => [(String, String)] -> IO (m Identifier) instance Monad (Either String) module Web.Authenticate.Rpxnow -- | Information received from Rpxnow after a valid login. data Identifier Identifier :: String -> [(String, String)] -> Identifier identifier :: Identifier -> String extraData :: Identifier -> [(String, String)] -- | Attempt to log a user in. authenticate :: (Monad m) => String -> String -> IO (m Identifier)