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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...