authenticate-0.6.5: Authentication methods for Haskell web applications.

Portabilityportable
StabilityUnstable
MaintainerMichael Snoyman <michael@snoyman.com>

Web.Authenticate.OpenId

Description

Provides functionality for being an OpenId consumer.

Synopsis

Documentation

newtype Identifier Source

An openid identifier (ie, a URL).

Constructors

Identifier 

Fields

identifier :: String
 

getForwardUrlSource

Arguments

:: (MonadIO m, Failure InvalidUrlException m, Failure HttpException m, Failure MissingVar m) 
=> String

The openid the user provided.

-> String

The URL for this application's complete page.

-> m String

URL to send the user to.

Returns a URL to forward the user to in order to login.

authenticate :: (MonadIO m, Failure AuthenticateException m, Failure InvalidUrlException m, Failure HttpException m, Failure MissingVar 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.