Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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 | |
|
Instances
FromJSON AuthConfig Source # | |
Defined in Network.Wai.Auth.Config parseJSON :: Value -> Parser AuthConfig # parseJSONList :: Value -> Parser [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 | |
|
Instances
ToJSON FileServer Source # | |
Defined in Network.Wai.Auth.Config toJSON :: FileServer -> Value # toEncoding :: FileServer -> Encoding # toJSONList :: [FileServer] -> Value # toEncodingList :: [FileServer] -> Encoding # | |
FromJSON FileServer Source # | |
Defined in Network.Wai.Auth.Config parseJSON :: Value -> Parser FileServer # parseJSONList :: Value -> Parser [FileServer] # |
data ReverseProxy Source #
Configuration for reverse proxy application.
Instances
ToJSON ReverseProxy Source # | |
Defined in Network.Wai.Auth.Config toJSON :: ReverseProxy -> Value # toEncoding :: ReverseProxy -> Encoding # toJSONList :: [ReverseProxy] -> Value # toEncodingList :: [ReverseProxy] -> Encoding # | |
FromJSON ReverseProxy Source # | |
Defined in Network.Wai.Auth.Config parseJSON :: Value -> Parser ReverseProxy # parseJSONList :: Value -> Parser [ReverseProxy] # |