mmmm then how i suppose to authenticate if session is not supported in python lmao
JWT ?
Yeah, so Cloud is still on Appwrite 1.4. Sessions in Python are only supported from Appwrite 1.5
Well, until SSR in 1.5, it was generally assumed that users would authenticate with one of the frontend SDKs, and then communicate directly with Appwrite from the browser.
Thats perfectly fine
mmmmmm i see that the only way is to make the user login from the front end and then to validate if he logged in from my python app.
Yes - or you could interact with the client side APIs directly from Python (not using the SDK), but I wouldn’t recommend that.
mmmm i see what you say. well anyway thanks for the help!!!!
oh and another thing
nvm its changed my whole percpective on the architecture
because the collections are restricted per user
so if icannot set a session then that mean i cannot read them from my python client
geeez 😦
i think the solution is to create "email password" session and then cloud fucntion that will allow to read from the db session based
!!!!!!!
You can read them with an API key
yeah but they are restricted
this is the api key that i use for the testing
API keys aren’t restricted by Permissions. Only by scopes
27 scopes
If your API key has the database.read
permission, it can read any Document in any Collection in any Database within your Project.
idk man it doesnt working to me.
now i found out that i didnt setup the key. And when i setup it i cannot create a email_password session
1020 if http_error_msg: -> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: 401 Client Error: Unauthorized for url: https://cloud.appwrite.io/v1/account/sessions/email
During handling of the above exception, another exception occurred:
AppwriteException: app.**********@service.cloud.appwrite.io (role: applications) missing scope (public)
Recommended threads
- Rate Limit of project
AppwriteException: Rate limit for the current endpoint has been exceeded. Please try again after some time. So , how much time I have to wait and why does it h...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...