cedar-agent icon indicating copy to clipboard operation
cedar-agent copied to clipboard

Lack of documentation for the additional_entities key in /is_authorized endpoint

Open maxprofit opened this issue 1 year ago • 1 comments

I'm trying to understand what this key value pair does, but I'm not sure how it differs from the entities key-value pair. Or maybe I don't see where the documentation lays it out

maxprofit avatar Oct 03 '24 15:10 maxprofit

Hey @MaxProfit , You are correct we haven't added openapi description as we should have when initially building the schema. The difference between the two is:

  • entities: full replacement for the entities you have stored. Basically means ignore any stores entities in the agent and use the ones provided in here.
  • additional_entities: extra entities to the one stored in the agent, the call will use both the entities stored and the ones provided in here.

omer9564 avatar Oct 03 '24 23:10 omer9564