biscuit-auth / biscuit-java

Java implementation of the Biscuit authentication and authorization token

Home Page:https://biscuitsec.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Namespacing

henrydaly opened this issue · comments

I'm having trouble getting namespacing to work. Here's how I've written the fact:

biscuitBuilder.add_authority_fact("mynamespace:somefact(\"value\")");

And I received an error like so:

Error{input=':somefact("value")', message='opening parens not found'}

I also tried adding double backslashes, but that also seems to fail. The datalog reference on the biscuit documentation suggest that namespaces should work with a simple colon. Am I missing something?

@henrydaly namespacing is currently not supported by biscuit-java.

@KannarFr thanks for the quick response! Any idea on timeline for when it might be supported? Alternatively, if it's not in the roadmap and the community wanted to add support, is there any assistance that could be provided as to what needs to be done?

@Geal does samples support namespaces?

it is supported in the biscuit specification and it should be supported by the java version: https://github.com/CleverCloud/biscuit-java/blob/master/src/main/java/com/clevercloud/biscuit/token/builder/parser/Parser.java#L202
@henrydaly are you using the most recent version of biscuit-java?

I'm using version 2.2.0, the latest I believe

@KannarFr can you look into it? Pobably a bug in the parser