| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Wai.Auth.Executable
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
Arguments
| :: 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
Constructors
| AuthConfig | |
Fields
| |
Instances
| FromJSON AuthConfig Source # | |
Defined in Network.Wai.Auth.Config | |
Configuration for a secret key that will be used to encrypt authenticated user as client side cookie.
Constructors
| 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
|
Available services.
Constructors
| ServiceFiles FileServer | |
| ServiceProxy ReverseProxy |
data FileServer Source #
Configuration for reverse proxy application.
Constructors
| FileServer | |
Fields
| |
Instances
| ToJSON FileServer Source # | |
Defined in Network.Wai.Auth.Config Methods toJSON :: FileServer -> Value # toEncoding :: FileServer -> Encoding # toJSONList :: [FileServer] -> Value # toEncodingList :: [FileServer] -> Encoding # | |
| FromJSON FileServer Source # | |
Defined in Network.Wai.Auth.Config | |
data ReverseProxy Source #
Configuration for reverse proxy application.
Constructors
| ReverseProxy | |
Instances
| ToJSON ReverseProxy Source # | |
Defined in Network.Wai.Auth.Config Methods toJSON :: ReverseProxy -> Value # toEncoding :: ReverseProxy -> Encoding # toJSONList :: [ReverseProxy] -> Value # toEncodingList :: [ReverseProxy] -> Encoding # | |
| FromJSON ReverseProxy Source # | |
Defined in Network.Wai.Auth.Config | |