# HG changeset patch # User Kim Alvefur # Date 1773155605 -3600 # Node ID cf5f0a20e16a1297dc136f4639fd1203505c0630 # Parent 66d7da6a90327c236d15c44b22c9d7fbc954eaf4 mod_rest: Fixup incorrect user auth docs diff -r 66d7da6a9032 -r cf5f0a20e16a mod_rest/README.md --- a/mod_rest/README.md Tue Mar 10 15:38:39 2026 +0100 +++ b/mod_rest/README.md Tue Mar 10 16:13:25 2026 +0100 @@ -46,24 +46,12 @@ ## User authentication -To enable user authentication, edit the "admins = { }" section in prosody.cfg.lua, EG: - -```lua -admins = { "admin@chat.example.com" } -``` - -To set up the admin user account: - -```lua -prosodyctl adduser admin@chat.example.com -``` - -and lastly, drop the "@host" from the username in your http queries, EG: +Usernames are passed via HTTP Basic authentication, _without_ the `@virtualhost` part. ```lua curl -sf \ -H 'Accept: application/json' \ - --user admin \ + --user romeo \ https://chat.example.com:5281/rest/version/chat.example.com ```