-- 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.6.0 -- | Provides functionality for being an OpenId consumer. module Web.Authenticate.OpenId -- | An openid identifier (ie, a URL). newtype Identifier Identifier :: String -> Identifier identifier :: Identifier -> String -- | Returns a URL to forward the user to in order to login. getForwardUrl :: (MonadIO m, MonadFailure WgetException m) => String -> String -> 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, failures an explanation. authenticate :: (MonadIO m, MonadFailure WgetException m, MonadFailure (LookupFailure String) m, MonadFailure AuthenticateException m) => [(String, String)] -> m Identifier instance Typeable AuthenticateException instance Show AuthenticateException instance Eq Identifier instance Show Identifier instance Exception AuthenticateException instance Monad Error 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 :: (MonadIO m, MonadFailure WgetException m, MonadFailure StringException m) => String -> String -> m Identifier