Copyright | (c) Anton Gushcha 2016 |
---|---|
License | MIT |
Maintainer | ncrashed@gmail.com |
Stability | experimental |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
- data AuthConfig = AuthConfig {
- 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
- singleUseCodeSender :: !(RespUserInfo -> SingleUseCode -> IO ())
- singleUseCodeExpire :: !NominalDiffTime
- singleUseCodeGenerator :: !(IO SingleUseCode)
- singleUseCodePermamentMaximum :: !Word
- singleUseCodeDefaultCount :: !Word
- class Monad m => HasAuthConfig m where
- defaultAuthConfig :: AuthConfig
Documentation
data AuthConfig Source #
Configuration specific for authorisation system
AuthConfig | |
|
class Monad m => HasAuthConfig m where Source #
Monad that can read an auth config
getAuthConfig :: m AuthConfig Source #
defaultAuthConfig :: AuthConfig Source #
Default configuration for authorisation server