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
- createCollection Deprecated
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...