| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Happstack.Authenticate.OpenId.Core
Contents
Synopsis
- data OpenIdError
- data OpenIdState_1 = OpenIdState_1 {}
- identifiers_1 :: Iso' OpenIdState_1 (Map Identifier UserId)
- data OpenIdState = OpenIdState {}
- openIdRealm :: Lens' OpenIdState (Maybe Text)
- identifiers :: Lens' OpenIdState (Map Identifier UserId)
- initialOpenIdState :: OpenIdState
- identifierToUserId :: Identifier -> Query OpenIdState (Maybe UserId)
- associateIdentifierWithUserId :: Identifier -> UserId -> Update OpenIdState ()
- getOpenIdRealm :: Query OpenIdState (Maybe Text)
- setOpenIdRealm :: Maybe Text -> Update OpenIdState ()
- newtype IdentifierToUserId = IdentifierToUserId Identifier
- data AssociateIdentifierWithUserId = AssociateIdentifierWithUserId Identifier UserId
- data GetOpenIdRealm = GetOpenIdRealm
- newtype SetOpenIdRealm = SetOpenIdRealm (Maybe Text)
- data SetRealmData = SetRealmData {}
- srOpenIdRealm :: Iso' SetRealmData (Maybe Text)
- realm :: Happstack m => AcidState AuthenticateState -> AcidState OpenIdState -> m Response
- getIdentifier :: Happstack m => m Identifier
- token :: (Alternative m, Happstack m) => AcidState AuthenticateState -> AuthenticateConfig -> AcidState OpenIdState -> m Response
Documentation
data OpenIdError Source #
Constructors
| UnknownIdentifier | |
| CoreError | |
Fields | |
Instances
data OpenIdState_1 Source #
Constructors
| OpenIdState_1 | |
Fields | |
Instances
data OpenIdState Source #
Constructors
| OpenIdState | |
Fields | |
Instances
openIdRealm :: Lens' OpenIdState (Maybe Text) Source #
associateIdentifierWithUserId :: Identifier -> UserId -> Update OpenIdState () Source #
getOpenIdRealm :: Query OpenIdState (Maybe Text) Source #
Get the OpenId realm to use for authentication
setOpenIdRealm :: Maybe Text -> Update OpenIdState () Source #
set the realm used for OpenId Authentication
IMPORTANT: Changing this value after users have registered is likely to invalidate existing OpenId tokens resulting in users no longer being able to access their old accounts.
newtype IdentifierToUserId Source #
Constructors
| IdentifierToUserId Identifier |
Instances
| QueryEvent IdentifierToUserId Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
| Method IdentifierToUserId Source # | |
Defined in Happstack.Authenticate.OpenId.Core Associated Types type MethodResult IdentifierToUserId :: Type Source # type MethodState IdentifierToUserId :: Type Source # Methods methodTag :: IdentifierToUserId -> Tag Source # | |
| SafeCopy IdentifierToUserId Source # | |
Defined in Happstack.Authenticate.OpenId.Core Methods version :: Version IdentifierToUserId Source # kind :: Kind IdentifierToUserId Source # getCopy :: Contained (Get IdentifierToUserId) Source # putCopy :: IdentifierToUserId -> Contained Put Source # internalConsistency :: Consistency IdentifierToUserId Source # objectProfile :: Profile IdentifierToUserId Source # errorTypeName :: Proxy IdentifierToUserId -> String Source # | |
| type MethodState IdentifierToUserId Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
| type MethodResult IdentifierToUserId Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
data AssociateIdentifierWithUserId Source #
Constructors
| AssociateIdentifierWithUserId Identifier UserId |
Instances
data GetOpenIdRealm Source #
Constructors
| GetOpenIdRealm |
Instances
| QueryEvent GetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
| Method GetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core Associated Types type MethodResult GetOpenIdRealm :: Type Source # type MethodState GetOpenIdRealm :: Type Source # Methods methodTag :: GetOpenIdRealm -> Tag Source # | |
| SafeCopy GetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core Methods version :: Version GetOpenIdRealm Source # kind :: Kind GetOpenIdRealm Source # getCopy :: Contained (Get GetOpenIdRealm) Source # putCopy :: GetOpenIdRealm -> Contained Put Source # internalConsistency :: Consistency GetOpenIdRealm Source # | |
| type MethodState GetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
| type MethodResult GetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
newtype SetOpenIdRealm Source #
Constructors
| SetOpenIdRealm (Maybe Text) |
Instances
| UpdateEvent SetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
| Method SetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core Associated Types type MethodResult SetOpenIdRealm :: Type Source # type MethodState SetOpenIdRealm :: Type Source # Methods methodTag :: SetOpenIdRealm -> Tag Source # | |
| SafeCopy SetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core Methods version :: Version SetOpenIdRealm Source # kind :: Kind SetOpenIdRealm Source # getCopy :: Contained (Get SetOpenIdRealm) Source # putCopy :: SetOpenIdRealm -> Contained Put Source # internalConsistency :: Consistency SetOpenIdRealm Source # | |
| type MethodState SetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
| type MethodResult SetOpenIdRealm Source # | |
Defined in Happstack.Authenticate.OpenId.Core | |
data SetRealmData Source #
Constructors
| SetRealmData | |
Fields | |
Instances
realm :: Happstack m => AcidState AuthenticateState -> AcidState OpenIdState -> m Response Source #
getIdentifier :: Happstack m => m Identifier Source #
token :: (Alternative m, Happstack m) => AcidState AuthenticateState -> AuthenticateConfig -> AcidState OpenIdState -> m Response Source #
Orphan instances
| SafeCopy Identifier Source # | |
Methods version :: Version Identifier Source # kind :: Kind Identifier Source # getCopy :: Contained (Get Identifier) Source # putCopy :: Identifier -> Contained Put Source # internalConsistency :: Consistency Identifier Source # objectProfile :: Profile Identifier Source # errorTypeName :: Proxy Identifier -> String Source # | |