
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
- Google login error: {"message":"Invalid ...
hi, im trying to use google login with account.createOAuth2Session( 'google', 'profevardilla.pages.dev', 'profevardilla.pages.dev'...
- Create owner team member with Server fun...
I understand that when creating a team with a function, the user that made the request will not be the owner so I think I have to add the user that did the requ...
- Check User on Server SDK
I have my backend which exposes some endpoints let's say /feed (return a hard coded json as response) I want this to be only accessible to users who are curre...
