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

Auth.Biscuit.ProtoBufAdapter

Description

Conversion functions between biscuit components and protobuf-encoded components

Synopsis

Documentation

data Symbols Source #

Instances

Instances details
Show Symbols Source # 
Instance details

Defined in Auth.Biscuit.Symbols

Eq Symbols Source # 
Instance details

Defined in Auth.Biscuit.Symbols

Methods

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

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

blockToPb :: Bool -> 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