Rank 1: Thread
mmmm then how i suppose to authenticate if session is not supported in python lmao
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
mmmm then how i suppose to authenticate if session is not supported in python lmao
Rank 1: Thread
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.
Rank 1: Thread
Thats perfectly fine
Rank 1: Thread
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.
Rank 1: Thread
mmmm i see what you say.
well anyway thanks for the help!!!!
Rank 1: Thread
oh and another thing
Rank 1: Thread
nvm its changed my whole percpective on the architecture
Rank 1: Thread
because the collections are restricted per user
Rank 1: Thread
so if icannot set a session then that mean i cannot read them from my python client
Rank 1: Thread
geeez 😦
Rank 1: Thread
i think the solution is to create "email password" session and then cloud fucntion that will allow to read from the db session based
Rank 1: Thread
!!!!!!!
You can read them with an API key
Rank 1: Thread
yeah but they are restricted
Rank 1: Thread
this is the api key that i use for the testing
API keys aren’t restricted by Permissions. Only by scopes
Rank 1: Thread
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.
Rank 1: Thread
idk man it doesnt working to me.
Rank 1: Thread
now i found out that i didnt setup the key. And when i setup it i cannot create a email_password session
Rank 1: Thread
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:
Rank 1: Thread
AppwriteException: app.**********@service.cloud.appwrite.io (role: applications) missing scope (public)