Safe Haskell | None |
---|---|
Language | Haskell2010 |
Functions for implementing an Oz server.
- authenticate :: forall m. MonadIO m => Key -> TicketOpts -> AuthReqOpts -> Request -> m (AuthResult OzSealedTicket)
- authenticateExpired :: forall m. MonadIO m => Key -> TicketOpts -> AuthReqOpts -> Request -> m (AuthResult OzSealedTicket)
- authenticate' :: forall m. MonadIO m => CheckExpiration -> Key -> TicketOpts -> AuthReqOpts -> Request -> m (AuthResult OzSealedTicket)
- data CheckExpiration
Documentation
authenticate :: forall m. MonadIO m => Key -> TicketOpts -> AuthReqOpts -> Request -> m (AuthResult OzSealedTicket) Source #
Authenticates a Request
using Hawk
authenticateRequest
. The Oz ticket is
decrypted and decoded from the Hawk attributes.
authenticateExpired :: forall m. MonadIO m => Key -> TicketOpts -> AuthReqOpts -> Request -> m (AuthResult OzSealedTicket) Source #
Same as authenticate
but expired Oz tickets are permitted.
authenticate' :: forall m. MonadIO m => CheckExpiration -> Key -> TicketOpts -> AuthReqOpts -> Request -> m (AuthResult OzSealedTicket) Source #
authenticate
and authenticateExpired
are written in terms of
this function.