I would like to call a Cloud Code Service from a trusted server. I’ve disabled all the permissions except RestUser permission and would like to use REST Api Key for accessing it.
When you make a call, there will be 2 roles involved at once - the Authenticated/NotAuthenticatedUser and the role of that API key. In your case, you have GRANT permission for the RestUser role and DENY permission for the NotAuthenticatedUser role. Therefore, access is denied.
and it works fine. How can I make use of those REST Api Key, to secure my service? Or maybe there is another way to do it, using some auth headers? Thank you!