https://cerbos.dev logo
#help
Title
# help
j

Joseph Harkins

08/30/2023, 11:12 PM
Can a resource attr take an object? (JS SDK) I am sending it an object as an attr but it keeps receiving it as a string (as indicated by Cerbos audit log), and before I try to figure out what silly thing I have done, I wanted to sanity check with ye. Thanks ✌️
d

Dennis (Cerbos)

08/30/2023, 11:16 PM
The resource/principal
attr
can take an object and is available in the policies condition. The logger serialises embedded objects.
j

Joseph Harkins

08/30/2023, 11:28 PM
Nice one thanks @Dennis (Cerbos) I learned something useful, policies are case sensitive to attributes 😄 😄