authenticate-0.0.0: Authentication methods for Haskell web applications.Source codeContentsIndex
Web.Authenticate.OpenId
Portabilityportable
StabilityUnstable
MaintainerMichael Snoyman <michael@snoyman.com>
Description
Provides functionality for being an OpenId consumer.
Synopsis
data Identifier = Identifier {
identifier :: String
}
getForwardUrl :: Monad m => String -> String -> IO (m String)
authenticate :: Monad m => [(String, String)] -> IO (m Identifier)
Documentation
data Identifier Source
An openid identifier (ie, a URL).
Constructors
Identifier
identifier :: String
getForwardUrlSource
:: Monad m
=> StringThe openid the user provided.
-> StringThe URL for this application's complete page.
-> IO (m String)URL to send the user to.
Returns a URL to forward the user to in order to login.
authenticate :: Monad m => [(String, String)] -> IO (m Identifier)Source
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.
Produced by Haddock version 2.4.2