gssapi-wai-0.1.2.3: WAI Middleware for SPNEGO authentiaction

LicenseBSD-style
Maintainerpalkovsky.ondrej@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

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

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