Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 Feature: Allow full server side impersonation #3891

Closed
2 tasks done
aviNrich opened this issue Sep 21, 2022 · 4 comments
Closed
2 tasks done

🚀 Feature: Allow full server side impersonation #3891

aviNrich opened this issue Sep 21, 2022 · 4 comments
Labels
enhancement New feature or request product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.

Comments

@aviNrich
Copy link

🔖 Feature description

Hi,
In order to migrate complex apps such as ERP/CRM, I think we need a way to wrap/proxy appwrite from the server.
If everything that is possible from the client side will be available on the server side it will give huge benefit migrating complex apps.
This way we will be less depend on functions and can wrap all database calls with our own logic.
I think most of the problem today is the ability to impersonate the use on the server side for unlimited time and do everything on behalf of him..

🎤 Pitch

  1. Exposing server to server APIs for our customers is almost impossible today...
  2. Imagine if server-side create session function will return a jwt token with unlimited time and this token will be used in the server the same way on as we use it from the client side, The variety of apps we can implement in appwrite is much more wide.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@Meldiron Meldiron added the product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services. label Sep 23, 2022
@Meldiron
Copy link
Contributor

Not directly, but related to: #3120
Thanks for raising this 🙏

We have seen many different use cases, and we should address all as part of one feature. We will do our best to brainstorm a secure, easy-to-use feature to address them all.

@izznatsir
Copy link

izznatsir commented Oct 2, 2022

This will be really useful to use on server side js framework such as Remix and Sveltekit. A small e-commerce that I created implement the session creation on the server side.

So I could create and manage a custom session cookie myself. While isolating the interaction with the data api only on the server side with token send via request header.

@CannonPhelps
Copy link

Having this especially for sveltekit would be amazing as handing over client-side info to the server is overly complicated

@stnguyen90 stnguyen90 mentioned this issue Nov 1, 2023
5 tasks
@stnguyen90 stnguyen90 added enhancement New feature or request and removed feature labels Mar 20, 2024
@stnguyen90
Copy link
Contributor

This should be doable now by creating a custom token server side and exchanging it for a session. Then, use that session for any calls on behalf of the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
Projects
Status: Done
Development

No branches or pull requests

5 participants