Mercurial > prosody-modules
annotate mod_auth_http_async/README.md @ 6403:13c61a068c71
mod_pubsub_serverinfo: Include hostname in default pubsub node name
This change ensures that every host publishes to a unique node by default,
which is important when publishing info about multiple hosts.
The old default node name was "serverinfo"
The new default node name is in the format "serverinfo/example.com" where
example.com is automatically replaced by the publishing host's name.
This affects existing deployments in the following ways:
- If you already configured pubsub_serverinfo_node explicitly in your config,
then nothing will change, your current configuration will still be used.
- If you did not specify it in your config (i.e. used the default) then the
module will switch to publishing to the new node. If your configuration is
correct this shouldn't be noticed, because the new node will automatically
be created and configured by the module. If you want, you can clean up the
old 'serverinfo' node using:
prosodyctl shell pubsub delete_node pubsub.example.com serverinfo
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 11 Feb 2026 09:40:30 +0000 |
| parents | 7b693a5539ad |
| children |
| rev | line source |
|---|---|
|
1933
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
1 --- |
|
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
2 labels: |
|
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
3 - Stage-Alpha |
|
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
4 ... |
|
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
5 |
| 1888 | 6 Introduction |
| 7 ============ | |
| 8 | |
|
6317
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
9 This is an authentication module that does an asynchronous |
| 1888 | 10 HTTP call to verify username and password. |
| 11 | |
| 12 Details | |
| 13 ======= | |
| 14 | |
| 15 When a user attempts to authenticate to Prosody, this module takes the | |
| 16 username and password and does a HTTP GET request with [Basic | |
| 17 authentication][rfc7617] to the configured `http_auth_url`. | |
| 18 | |
| 19 Configuration | |
| 20 ============= | |
| 21 | |
|
6317
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
22 After installing, enable the module by setting `authentication` to `"http_async"`. |
|
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
23 |
|
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
24 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 |
|
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
25 `$user` which are substituted for the current VirtualHost and the authenticating username, respectively. |
|
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
26 |
|
1933
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
27 ``` lua |
| 1888 | 28 VirtualHost "example.com" |
| 29 authentication = "http_async" | |
| 30 http_auth_url = "http://example.com/auth" | |
| 31 ``` | |
| 32 | |
|
1933
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
33 Compatibility |
|
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
34 ============= |
|
afba0821f058
mod_auth_http_async/README: Add compatibility info
Kim Alvefur <zash@zash.se>
parents:
1888
diff
changeset
|
35 |
|
6317
7b693a5539ad
mod_auth_http_async: Update documentation
Kim Alvefur <zash@zash.se>
parents:
5975
diff
changeset
|
36 Should work with Prosody 0.10.x and later. |
