| Copyright | (c) Anton Gushcha, 2016 |
|---|---|
| License | MIT |
| Maintainer | ncrashed@gmail.com |
| Stability | experimental |
| Portability | Portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Servant.Server.Auth.Token.Config
Description
- data AuthConfig = AuthConfig {
- getPool :: ConnectionPool
- defaultExpire :: !NominalDiffTime
- restoreExpire :: !NominalDiffTime
- restoreCodeSender :: !(RespUserInfo -> RestoreCode -> IO ())
- restoreCodeGenerator :: !(IO RestoreCode)
- maximumExpire :: !(Maybe NominalDiffTime)
- passwordsStrength :: !Int
- passwordValidator :: !(Text -> Maybe Text)
- servantErrorFormer :: !(ServantErr -> ServantErr)
- defaultPageSize :: !Word
- defaultAuthConfig :: ConnectionPool -> AuthConfig
Documentation
data AuthConfig Source
Configuration specific for authorisation system
Constructors
| AuthConfig | |
Fields
| |
Instances
defaultAuthConfig :: ConnectionPool -> AuthConfig Source
Default configuration for authorisation server