happstack-authenticate-0.10.7: Happstack Authentication Library

Safe HaskellNone

Happstack.Auth.Core.Auth

Synopsis

Documentation

newtype UserName Source

NOTE: The Eq and Ord instances are 'case-insensitive'. They apply toCaseFold before comparing.

Constructors

UserName 

Fields

unUserName :: Text
 

userPassErrorString :: UserPassError -> StringSource

return a user-friendly error message string for an AddAuthError

data AuthMap Source

This links an authentication method (such as on OpenId Identifier, a FacebookId, or UserPassId) to an AuthId.

Constructors

AuthMap 

mkHashedPassSource

Arguments

:: Text

password in plain text

-> IO HashedPass

salted and hashed

hash a password string

genAuthToken :: MonadIO m => Maybe AuthId -> AuthMethod -> Int -> m AuthTokenSource

generate an new authentication token