Web.Authenticate.Rpxnow

authenticate-1.3.3: Authentication methods for Haskell web applications.

Safe Haskell | None
Language | Haskell98

Web.Authenticate.Rpxnow

Synopsis

- data Identifier = Identifier {
  - identifier :: Text
  - extraData :: [(Text, Text)]
  }
- authenticate :: (MonadResource m, MonadBaseControl IO m) => String -> String -> Manager -> m Identifier
- data AuthenticateException
  - = RpxnowException String
  - | NormalizationException String
  - | DiscoveryException String
  - | AuthenticationException String

# Documentation

data Identifier

Information received from Rpxnow after a valid login.

Constructors

Identifier |
Fields identifier :: Text extraData :: [(Text, Text)]

Instances

Eq Identifier |
Data Identifier |
Ord Identifier |
Read Identifier |
Show Identifier |

authenticate

Arguments

:: (MonadResource m, MonadBaseControl IO m) |
=> String | API key given by RPXNOW.
-> String | Token passed by client.
-> Manager |
-> m Identifier |

Attempt to log a user in.

data AuthenticateException

Constructors

RpxnowException String |
NormalizationException String |
DiscoveryException String |
AuthenticationException String |

Instances

Show AuthenticateException |
Exception AuthenticateException |