happstack-authenticate-0.10.13: Happstack Authentication Library

Safe HaskellNone
LanguageHaskell98

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 -> String Source

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 

mkHashedPass Source

Arguments

:: Text

password in plain text

-> IO HashedPass

salted and hashed

hash a password string

genAuthToken :: MonadIO m => Maybe AuthId -> AuthMethod -> Int -> m AuthToken Source

generate an new authentication token