biscuit-auth / biscuit-java

Java implementation of the Biscuit authentication and authorization token
https://biscuitsec.org/
Apache License 2.0
28 stars 13 forks source link

samples verify block by block #88

Closed KannarFr closed 2 weeks ago

KannarFr commented 2 months ago

This is DRAFT.

Geal commented 2 months ago

BTW is there a good way in maven to capture stdout in tests, so that we only display it for tests that failed?

Geal commented 2 months ago

https://github.com/biscuit-auth/biscuit-java/pull/94 merges the parts of this PR that were already usable, leaving the samples block checks and the Parser.datalog method.

Right now I am not too convinced about the implementation of that method that does manual string manipulations. An implementation that follows the rest of the parser, using parser combinators, would fit better here and prevent errors. The Rust reference implementation can be used as inspiration here https://github.com/biscuit-auth/biscuit-rust/blob/main/biscuit-parser/src/parser.rs#L895-L970

Geal commented 2 weeks ago

closing this since it has been merged as part of https://github.com/biscuit-auth/biscuit-java/pull/102