Mercurial > prosody-modules
view mod_auth_http_async/README.md @ 6562:5da6fb562df9 default tip
mod_unified_push: Fix push error handling (fixes #2000)
Use the error object that send_iq() passes
as an argument to it's reject callback instead of attempting
and failing to do the parsing in the callback itself.
| author | kmq |
|---|---|
| date | Mon, 06 Jul 2026 14:23:57 +0200 |
| parents | 7b693a5539ad |
| children |
line wrap: on
line source
--- labels: - Stage-Alpha ... Introduction ============ This is an authentication module that does an asynchronous HTTP call to verify username and password. Details ======= When a user attempts to authenticate to Prosody, this module takes the username and password and does a HTTP GET request with [Basic authentication][rfc7617] to the configured `http_auth_url`. Configuration ============= After installing, enable the module by setting `authentication` to `"http_async"`. The only setting is `http_auth_url` which should contain the URL endpoint where the authentication query is sent to. It can contain `$host` and `$user` which are substituted for the current VirtualHost and the authenticating username, respectively. ``` lua VirtualHost "example.com" authentication = "http_async" http_auth_url = "http://example.com/auth" ``` Compatibility ============= Should work with Prosody 0.10.x and later.
