Skip to content

Commit 482e6e0

Browse files
authored
Merge pull request #48 from eclipse-biscuit/push-uytvwszzowyn
v0.4.0-beta.3
2 parents d029802 + 4ae52f9 commit 482e6e0

File tree

5 files changed

+20
-9
lines changed

5 files changed

+20
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.4.0-beta.3
2+
3+
- support for third-party blocks
4+
- biscuit-rust 6.0.0
5+
16
# 0.4.0-beta.2
27

38
- pre-built wheels for python 3.9-3.13

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "biscuit-python"
3-
version = "0.4.0-beta.2"
3+
version = "0.4.0-beta.3"
44
edition = "2021"
55

66
[lib]
77
name = "biscuit_auth"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
biscuit-auth = { version = "6.0.0-beta.3", features = ["pem"] }
11+
biscuit-auth = { version = "6.0.0", features = ["pem"] }
1212
pyo3 = { version = "0.24.1", features = ["extension-module", "chrono"] }
1313
hex = "0.4"
1414
base64 = "0.13.0"

biscuit_auth.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ class UnverifiedBiscuit:
626626
def revocation_ids(self) -> List[str]: ...
627627
def verify(self, root: PublicKey) -> Biscuit: ...
628628

629+
# Third party block request
629630
class ThirdPartyRequest:
630631
# Create a third-party block
631632
#
@@ -643,5 +644,6 @@ class ThirdPartyRequest:
643644
block: BlockBuilder
644645
) -> ThirdPartyBlock: ...
645646

647+
# Third party block contents
646648
class ThirdPartyBlock:
647649
pass

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ impl PyBlockBuilder {
10651065
}
10661066
}
10671067

1068+
/// Third party block request
10681069
#[pyclass(name = "ThirdPartyRequest")]
10691070
pub struct PyThirdPartyRequest(Option<ThirdPartyRequest>);
10701071

@@ -1097,6 +1098,7 @@ impl PyThirdPartyRequest {
10971098
}
10981099
}
10991100

1101+
/// Third party block contents
11001102
#[pyclass(name = "ThirdPartyBlock")]
11011103
pub struct PyThirdPartyBlock(ThirdPartyBlock);
11021104

@@ -1706,6 +1708,8 @@ pub fn biscuit_auth(py: Python, m: &Bound<PyModule>) -> PyResult<()> {
17061708
m.add_class::<PyPolicy>()?;
17071709
m.add_class::<PyUnverifiedBiscuit>()?;
17081710
m.add_class::<PyAlgorithm>()?;
1711+
m.add_class::<PyThirdPartyRequest>()?;
1712+
m.add_class::<PyThirdPartyBlock>()?;
17091713

17101714
m.add("DataLogError", py.get_type::<DataLogError>())?;
17111715
m.add("AuthorizationError", py.get_type::<AuthorizationError>())?;

0 commit comments

Comments
 (0)