authenticate-0.6.2: 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
newtype Identifier = Identifier {
identifier :: String
}
getForwardUrl :: (MonadIO m, Failure WgetException m) => String -> String -> m String
authenticate :: (MonadIO m, Failure WgetException m, Failure AuthenticateException m) => [(String, String)] -> m Identifier
data AuthenticateException
= AuthenticateException String
| MissingOpenIdParameter String
Documentation
newtype Identifier Source
An openid identifier (ie, a URL).
Constructors
Identifier
identifier :: String
show/hide Instances
getForwardUrlSource
:: (MonadIO m, Failure WgetException m)
=> StringThe openid the user provided.
-> StringThe URL for this application's complete page.
-> m StringURL to send the user to.
Returns a URL to forward the user to in order to login.
authenticate :: (MonadIO m, Failure WgetException m, Failure AuthenticateException m) => [(String, String)] -> m IdentifierSource
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.
data AuthenticateException Source
Constructors
AuthenticateException String
MissingOpenIdParameter String
show/hide Instances
Produced by Haddock version 2.6.1