biscuit-haskell-0.2.1.0: Library support for the Biscuit security token
Copyright© Clément Delafargue 2021
LicenseMIT
Maintainerclement@delafargue.name
Safe HaskellNone
LanguageHaskell2010

Auth.Biscuit.ProtoBufAdapter

Description

Conversion functions between biscuit components and protobuf-encoded components

Synopsis

Documentation

data Symbols Source #

Instances

Instances details
Eq Symbols Source # 
Instance details

Defined in Auth.Biscuit.Symbols

Methods

(==) :: Symbols -> Symbols -> Bool #

(/=) :: Symbols -> Symbols -> Bool #

Show Symbols Source # 
Instance details

Defined in Auth.Biscuit.Symbols

buildSymbolTable :: Symbols -> Block -> BlockSymbols Source #

Given existing symbols and a biscuit block, compute the symbol table for the given block. Already existing symbols won't be included

extractSymbols :: [Block] -> Symbols Source #

Given existing symbols and a series of protobuf blocks, compute the complete symbol mapping

pbToBlock :: Symbols -> Block -> Either String Block Source #

Parse a protobuf block into a proper biscuit block

blockToPb :: Symbols -> Block -> (BlockSymbols, Block) Source #

Turn a biscuit block into a protobuf block, for serialization, along with the newly defined symbols

pbToSignedBlock :: SignedBlock -> Either String SignedBlock Source #

Parse a protobuf signed block into a signed biscuit block