hsoz-0.0.1.0: Iron, Hawk, Oz: Web auth protocols

Safe HaskellNone
LanguageHaskell2010

Network.Oz.Server

Description

Functions for implementing an Oz server.

Synopsis

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.