openid-0.2.0.1: An implementation of the OpenID-2.0 spec.

Portability
MaintainerStability :

Network.OpenID.Association

Contents

Description

 

Synopsis

Association

associate :: AssociationManager am => am -> Bool -> Resolver IO -> Provider -> IO (Either Error am)Source

Associate with a provider. By default, this tries to use DH-SHA256 and HMAC-SHA256, and falls back to whatever the server recommends, if the Bool parameter is True.

associate' :: AssociationManager am => am -> Bool -> Resolver IO -> Provider -> AssocType -> SessionType -> IO (Either Error am)Source

Associate with a provider, attempting to use the provided association methods. The Bool specifies whether or not recovery should be attempted upon a failed request.

Lower-level interface

data Assoc m a Source

Association monad

Instances

runAssoc :: (Monad m, BaseM m m) => AssocEnv m -> Assoc m a -> m (Either Error a)Source

Running a computation in the association monad

data AssocEnv m Source

Association environment

Constructors

AssocEnv 

Instances

Monad m => ReaderM (Assoc m) (AssocEnv m) 

associate_ :: (Monad m, AssociationManager am) => am -> Bool -> Resolver m -> Provider -> AssocType -> SessionType -> Assoc m amSource

A pure version of association. It will run in whatever base monad is provided, layering exception handling over that.