You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Apache authorization and need to create users in Baikal externally. I'm trying to write python script, just reproduce web-browser, but it looks monstrous:
Also the problem is that all requests returns 200 OK, and I can't handle any errors.
I'll need to update users in future and there is no way to get a list of users. Only from DB.
Creating users in DB is a bad idea, a lot of subsequent actions I have to do: create user and principal, create Default calendar and Default addressbook.
Am I missing something and there is a normal API to create/edit/list users with JSON requests and responses?
The text was updated successfully, but these errors were encountered:
Baikal version: 0.9.5
I'm using Apache authorization and need to create users in Baikal externally. I'm trying to write python script, just reproduce web-browser, but it looks monstrous:
Create session:
Login and store PHPSESSID in session
Now I need a CSRF_TOKEN, it is only in the html text, neither in headers nor in cookies
Doing GET and parse page
Now I have to send a lot of useless parameters in form
Also the problem is that all requests returns 200 OK, and I can't handle any errors.
I'll need to update users in future and there is no way to get a list of users. Only from DB.
Creating users in DB is a bad idea, a lot of subsequent actions I have to do: create user and principal, create Default calendar and Default addressbook.
Am I missing something and there is a normal API to create/edit/list users with JSON requests and responses?
The text was updated successfully, but these errors were encountered: