Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
* [Galene] Galene API merged into master
@ 2024-04-11 16:18 Juliusz Chroboczek
  0 siblings, 0 replies; only message in thread
From: Juliusz Chroboczek @ 2024-04-11 16:18 UTC (permalink / raw)
  To: galene

Hi,

I've just merged the "api" branch into master.  If you choose to upgrade,
please check your log file for warnings, they may indicate that you are
using features of the old group file format that cannot be converted to
the new format.


In order to use the API:

0. Upgrade to current master.


1. Set a "users" and "writableGroups"

    "users": {"root": {"permissions": "admin", "password": ...}},
    "writableGroups": true

The value of the password field can be either a plain-text password, or
a hashed password entry as generated by "galene-password-generator".


2. Log into a group with password authentication (not with a token), open
the side menu, choose "change password", and notice that you can now
change your password without editing any JSON files.


3. Say:

    curl -i -u root -X PUT -d '{}' -H 'Content-Type: application/json' -H 'If-None-Match: *' https://galene.org:8443/galene-api/0/.groups/test/
    curl -i -u root -X PUT -d '{"permissions":"present"}' -H 'Content-Type: application/json' -H 'If-None-Match: *' https://galene.example.org:8443/galene-api/0/.groups/test/.users/jch
    curl -i -u root -X POST -d 'topsecret' -H 'Content-Type: text/plain' https://galene.example.org:8443/galene-api/0/.groups/test/.users/jch/.password
    

Next steps:

1. Write a simple management UI, just enough to create groups and users.

2. Add token management to the API.

-- Juliusz

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-11 16:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 16:18 [Galene] Galene API merged into master Juliusz Chroboczek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox