| License | BSD-style |
|---|---|
| Maintainer | palkovsky.ondrej@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Wai.Middleware.SpnegoAuth
Description
WAI Middleware for SPNEGO authentication with failback to Basic authentication, where the username/password is checked using Kerberos library (i.e. kinit user@EXAMPLE.COM).
Synopsis
- spnegoAuth :: SpnegoAuthSettings -> Middleware
- data SpnegoAuthSettings = SpnegoAuthSettings {}
- defaultSpnegoSettings :: SpnegoAuthSettings
- spnegoAuthKey :: Key ByteString
- defaultAuthResponse :: SpnegoAuthSettings -> Request -> (Response -> IO ResponseReceived) -> IO ResponseReceived
- defaultAuthError :: (String -> IO ()) -> SpnegoAuthSettings -> Maybe (Either KrbException GssException) -> Application
Documentation
spnegoAuth :: SpnegoAuthSettings -> Middleware Source #
Middleware that provides SSO capabilites
data SpnegoAuthSettings Source #
Configuration structure for spnegoAuth middleware
Constructors
| SpnegoAuthSettings | |
Fields
| |
defaultSpnegoSettings :: SpnegoAuthSettings Source #
Default settings for spnegoAuth middleware
spnegoAuthKey :: Key ByteString Source #
Key that is used to access the username in WAI vault
defaultAuthResponse :: SpnegoAuthSettings -> Request -> (Response -> IO ResponseReceived) -> IO ResponseReceived Source #
Genereate HTTP response that asks client to do appropriate authentication
defaultAuthError :: (String -> IO ()) -> SpnegoAuthSettings -> Maybe (Either KrbException GssException) -> Application Source #
Default authentication for filling in spnegoOnAuthError