
Use case
I'm using Appwrite to add backend features to a puzzle site (Logic Pad). Because the site requires complex validation logic on document creation, I am hiding the entirety of Appwrite behind an API server hosted on DigitalOcean. The frontend client only interacts with DigitalOcean, which stores session secret (generated by Appwrite) in a secure cookie to authenticate the user (similar to how Appwrite SDK works).
Problem
Currently, the only way for the server to validate the session secret is to call the client account.get
API with the session secret. This means I have to expose Appwrite's Account service to public, which I do not want to do. In addition, if I want the server to act on behalf of the user using the client API such that permissions and rate limits are respected, I have to expose all relevant Appwrite services to the public, which defeats the purpose of having complex database validation.
Proposed solution
I need a middle-ground between the client API and the server API, one that requires authentication with session secret and respects permissions and rate limits, but also requires an API key for access so that this set of API is not exposed to the public.
@Steven Had a discussion with Matej and he recommended your help :appwritemagician:
Recommended threads
- Appwrite MCP is not working in Cursor
I have tried everything, tried to use the "add to cursor" button, then tired to insert the snippet from https://appwrite.io/docs/tooling/mcp/cursor -- this page...
- DATABASE ERROR
When I select NULL as the value and click update, it shows that the update is successful, but when I refresh it changes back to add-avatar. It seems that all fi...
- Flutter Starter Configuration Not Up to ...
I was trying to use Appwrite and connect Flutter, while using the starter kit from GitHub, as advised (please compare with attached screenshot). However, the s...
