Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data OzTicket = OzTicket {}
- data OzSealedTicket = OzSealedTicket {}
- data OzApp = OzApp {}
- data OzGrant = OzGrant {}
- data OzExt = OzExt {}
- data TicketOpts = TicketOpts {}
- defaultTicketOpts :: TicketOpts
- type OzAppId = Text
- type OzUserId = Text
- type OzGrantId = Text
- type OzPermission = Text
- type OzScope = [OzPermission]
- type OzTicketId = Text
- type OzLoadApp = OzAppId -> IO (Either String OzApp)
- type OzLoadGrant = OzGrantId -> IO (Either String (OzGrant, Maybe OzExt))
- data Endpoints = Endpoints {}
- defaultEndpoints :: Endpoints
Documentation
An object describing a ticket and its public properties. An Oz ticket is a set of Hawk credentials used by the application to access protected resources. Just like any other Hawk credentials.
OzTicket | |
|
data OzSealedTicket Source #
A sealed ticket is the result of issue
. It is
JSON-encoded and given to the app.
Unlike most Hawk credential identifiers, the Oz ticket identifier
is an encoded Iron string which when decoded contains an OzTicket
OzSealedTicket | |
|
An object describing an application.
OzApp | |
|
A grant is the authorization given to an application by a user to access the user's protected resources. Grants can be persisted in a database (usually to support revocation) or can be self describing (using an encoded identifier).
OzGrant | |
|
An object used to include custom server data in the ticket and response. The public part is included in the Oz reponse under ticket.ext. The private part is only available within the encoded ticket.
OzExt | |
|
data TicketOpts Source #
Ticket generation options. The default values are:
TicketOpts | |
|
type OzPermission = Text Source #
Tag representing permissions of application
type OzScope = [OzPermission] Source #
Set of permissions for application
type OzTicketId = Text Source #
Oz ticket identifier, which is also a Iron
encrypted
version of the ticket.
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.
Describes the URL configuration of the Oz server.
Endpoints | |
|
defaultEndpoints :: Endpoints Source #
A normal set of endpoint URL paths.