https://cerbos.dev logo
Title
j

Jesum Yip

01/16/2023, 2:32 AM
playing with cerbos playground and when i call the playground API, i see
{
  "code": 3,
  "message": "InvalidArgument"
}
what does that mean?
so the policies i have in playground are very simple
if i clear this field, playground works nicely. looks like playground performs validation of the jwt. can i turn this off? i'm using an expired token.
why is this returning an error?
image.png
d

Dennis (Cerbos)

01/16/2023, 4:29 AM
This is a YAML edge case when strings start with a quote. Here is a workaround:
- expr: >
    'audience' in request.aux_data.jwt.aud
j

Jesum Yip

01/16/2023, 4:39 AM
aaaah ok
thanks!