We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e7e3c7 commit 685797eCopy full SHA for 685797e
1 file changed
docs/basic-use.rst
@@ -117,3 +117,12 @@ Save and load snapshots
117
118
>>> snapshot = authorizer.base64_snapshot()
119
>>> 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