Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data AuthResult val
- = BadPassword
- | NoSuchUser
- | Authenticated val
- | Indefinite
- newtype AuthCheck val = AuthCheck {
- runAuthCheck :: Request -> IO (AuthResult val)
Documentation
data AuthResult val Source
The result of an authentication attempt.
BadPassword | |
NoSuchUser | |
Authenticated val | Authentication succeeded. |
Indefinite | If an authentication procedure cannot be carried out - if for example it
expects a password and username in a header that is not present -
|
Monad AuthResult Source | |
Functor AuthResult Source | |
Applicative AuthResult Source | |
Foldable AuthResult Source | |
Traversable AuthResult Source | |
Alternative AuthResult Source | |
MonadPlus AuthResult Source | |
Eq val => Eq (AuthResult val) Source | |
Ord val => Ord (AuthResult val) Source | |
Read val => Read (AuthResult val) Source | |
Show val => Show (AuthResult val) Source | |
Generic (AuthResult val) Source | |
Monoid (AuthResult val) Source | |
type Rep (AuthResult val) Source |
An AuthCheck
is the function used to decide the authentication status
(the AuthResult
) of a request. Different AuthCheck
s may be combined as a
Monoid or Alternative; the semantics of this is that the *first*
non-Indefinite
result from left to right is used.
AuthCheck | |
|