Skip to content

Commit 685797e

Browse files
committed
WIP 3rd party blocks documentation
1 parent 7e7e3c7 commit 685797e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/basic-use.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,12 @@ Save and load snapshots
117117

118118
>>> snapshot = authorizer.base64_snapshot()
119119
>>> parsed = Authorizer.from_base64_snapshot(snapshot)
120+
121+
Third-party blocks
122+
------------------
123+
124+
>>> external_keypair = KeyPair()
125+
>>> third_party_request = token.third_party_request()
126+
>>> new_block = BlockBuilder("external(true)")
127+
>>> third_party_block = third_party_request.create_block(external_keypair.private_key, new_block)
128+
>>> new_biscuit = token.append_third_party(external_keypair.public_key, third_party_block)

0 commit comments

Comments
 (0)