Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a Network.Wai Application
for managing
Oz tickets.
The Oz ticket endpoints can be run with Warp or embedded within another application.
- ozApp :: OzServerOpts -> IO Application
- ozAuth :: OzServerOpts -> Middleware
- data OzServerOpts = OzServerOpts {}
- type OzLoadApp = OzAppId -> IO (Either String OzApp)
- type OzLoadGrant = OzGrantId -> IO (Either String (OzGrant, Maybe OzExt))
- defaultOzServerOpts :: Key -> OzServerOpts
- ozAppScotty :: OzServerOpts -> ScottyM ()
Documentation
ozApp :: OzServerOpts -> IO Application Source #
Starts the Application
.
ozAuth :: OzServerOpts -> Middleware Source #
Network.Wai Middleware
for Oz
authentication. Resources can be selectively protected by applying
ifRequest
to the middleware.
data OzServerOpts Source #
OzServerOpts | |
|
type OzLoadApp = OzAppId -> IO (Either String OzApp) Source #
User-supplied function to look up an Oz app definition by its identifier.
type OzLoadGrant = OzGrantId -> IO (Either String (OzGrant, Maybe OzExt)) Source #
User-supplied function to look up an Oz grant by its identifier.
defaultOzServerOpts :: Key -> OzServerOpts Source #
An empty Oz endpoint configuration. The password should be set to something secret.
ozAppScotty :: OzServerOpts -> ScottyM () Source #
The Oz endpoints are actually implemented using
Web.Scotty. This provides the ScottyM
application
which can be embedded within other Scotty apps.