Skip to content

Commit

Permalink
Make default symbol table conform to the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
divarvel authored and KannarFr committed Mar 22, 2022
1 parent c94a88a commit 5292e26
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/main/java/com/clevercloud/biscuit/token/UnverifiedBiscuit.java
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,34 @@ public String print() {
*/
static public SymbolTable default_symbol_table() {
SymbolTable syms = new SymbolTable();
syms.insert("authority");
syms.insert("ambient");
syms.insert("read");
syms.insert("write");
syms.insert("resource");
syms.insert("operation");
syms.insert("right");
syms.insert("current_time");
syms.insert("revocation_id");

syms.insert("time");
syms.insert("role");
syms.insert("owner");
syms.insert("tenant");
syms.insert("namespace");
syms.insert("user");
syms.insert("team");
syms.insert("service");
syms.insert("admin");
syms.insert("email");
syms.insert("group");
syms.insert("member");
syms.insert("ip_address");
syms.insert("client");
syms.insert("client_ip");
syms.insert("domain");
syms.insert("path");
syms.insert("version");
syms.insert("cluster");
syms.insert("node");
syms.insert("hostname");
syms.insert("nonce");
syms.insert("query");
return syms;
}

Expand Down

0 comments on commit 5292e26

Please sign in to comment.