Is the following statement correct?:
The only way security (requiring a token) can be applied to a query is if it has a corresponding UDF and an assigned role?
thanks …
Is the following statement correct?:
The only way security (requiring a token) can be applied to a query is if it has a corresponding UDF and an assigned role?
thanks …
There are multiple ways to secure a query with roles.
With the introduction of AccessProviders there are actually more ways now to use roles related to third-party auth (Fauna | The distributed serverless database)
“The only way to make sure that a user can only execute exactly the query you want him to execute is by using UDFs”
Roles define permissions with which you can precisely lock down which documents or indexes a user can access. Adding a UDF with a role lets you encapsulate what the query can contain.