From: Juliusz Chroboczek <jch@irif.fr> To: galene@lists.galene.org Subject: [Galene] Galene API merged into master Date: Thu, 11 Apr 2024 18:18:06 +0200 [thread overview] Message-ID: <87ttk7c1q9.wl-jch@irif.fr> (raw) 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
reply other threads:[~2024-04-11 16:18 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87ttk7c1q9.wl-jch@irif.fr \ --to=jch@irif.fr \ --cc=galene@lists.galene.org \ --subject='Re: [Galene] Galene API merged into master' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox