authenticate-0.6.0.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, MonadFailure WgetException m) => String -> String -> m String
authenticate :: (MonadIO m, MonadFailure WgetException m, MonadFailure (LookupFailure String) m, MonadFailure AuthenticateException m) => [(String, String)] -> m Identifier
Documentation
newtype Identifier Source
An openid identifier (ie, a URL).
Constructors
Identifier
identifier :: String
show/hide Instances
getForwardUrlSource
:: (MonadIO m, MonadFailure 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, MonadFailure WgetException m, MonadFailure (LookupFailure String) m, MonadFailure 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.
Produced by Haddock version 2.6.1