Copyright | (c) Trevor Elliott 2008 |
---|---|
License | BSD3 |
Maintainer | Stability : |
Portability | |
Safe Haskell | None |
Language | Haskell98 |
- associate :: AssociationManager am => am -> Bool -> Resolver IO -> Provider -> IO (Either Error am)
- associate' :: AssociationManager am => am -> Bool -> Resolver IO -> Provider -> AssocType -> SessionType -> IO (Either Error am)
- data Assoc m a
- runAssoc :: (Monad m, BaseM m m) => AssocEnv m -> Assoc m a -> m (Either Error a)
- data AssocEnv m = AssocEnv {
- currentTime :: m UTCTime
- createParams :: SessionType -> m (Maybe DHParams)
- associate_ :: (Monad m, AssociationManager am) => am -> Bool -> Resolver m -> Provider -> AssocType -> SessionType -> Assoc m am
- module Network.OpenID.Association.Manager
- module Network.OpenID.Association.Map
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
Association monad
runAssoc :: (Monad m, BaseM m m) => AssocEnv m -> Assoc m a -> m (Either Error a) Source #
Running a computation in the association monad
Association environment
AssocEnv | |
|
associate_ :: (Monad m, AssociationManager am) => am -> Bool -> Resolver m -> Provider -> AssocType -> SessionType -> Assoc m am Source #
A "pure" version of association. It will run in whatever base monad is provided, layering exception handling over that.