Closed aurrelhebert closed 2 years ago
To create an authorizer, with the biscuit's world, you should use <biscuit>.authorizer()
method.
Indeed closing the issue
Instead of
val authorizer: Authorizer = new Authorizer
I should have done
val authorizer: Authorizer = attenuatedBiscuit.authorizer()
Ty :)
Here is my code (scala) with the last release of biscuit Java (2.2.0):
Basically when running this code I do get the following error:
This seems to be due to the fact that I use the
tmp
string as fact value for my user. When using or (1) or (2) instead of the factuser(\"tmp\")
, then my code works.However this happen only when attenuating a token as when I comment the line below (3) and uncomment (4), then the test is working correctly.