Safe Haskell | None |
---|---|
Language | Haskell2010 |
- mkMain :: AuthConfig -> [ProviderParser] -> (Port -> Application -> IO ()) -> IO ()
- readAuthConfig :: FilePath -> IO AuthConfig
- serviceToApp :: Service -> IO Application
- data AuthConfig = AuthConfig {}
- data SecretKey
- data Service
- data FileServer = FileServer {}
- data ReverseProxy = ReverseProxy {}
- encodeKey :: Key -> ByteString
- decodeKey :: ByteString -> Either String Key
- type Port = Int
Documentation
:: AuthConfig | Use |
-> [ProviderParser] | Parsers for supported providers. |
-> (Port -> Application -> IO ()) | Application runner, for instance Warp's |
-> IO () |
Construct a main
function.
Since: 0.1.0
readAuthConfig :: FilePath -> IO AuthConfig Source #
Read configuration from a yaml file with ability to use environment variables. See Data.Yaml.Config module for details.
Since: 0.1.0
serviceToApp :: Service -> IO Application Source #
Create an Application
from a Service
Since: 0.1.0
data AuthConfig Source #
Configuration for wai-auth
executable and any other, that is created using
mkMain
AuthConfig | |
|
Configuration for a secret key that will be used to encrypt authenticated user as client side cookie.
SecretKeyFile FilePath | Path to a secret key file in binary form, if it is malformed or doesn't exist it will be (re)created. If empty "client_session_key.aes" name will be used |
SecretKey Key | Serialized and base64 encoded form of a secret key. Use
|
data FileServer Source #
Configuration for reverse proxy application.
FileServer | |
|