Software / code / prosody-modules
Diff
mod_rest/README.md @ 6272:ed6fa901cf94
mod_rest: Enable HTTP Basic authentication for Components
Not sure if mod_http_oauth2 still works for components
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 31 May 2025 16:59:35 +0200 |
| parent | 6236:5ab0e560027a |
line wrap: on
line diff
--- a/mod_rest/README.md Sat May 31 16:07:29 2025 +0200 +++ b/mod_rest/README.md Sat May 31 16:59:35 2025 +0200 @@ -37,13 +37,11 @@ ## As a Component -If you install this as a component, you won't be able to use user authentication above, -and must use OAuth2 authentication outlined below. +If you install this as a component, the HTTP Basic credentials are the components base JID along with its secret. ``` {.lua} Component "chat.example.com" "rest" component_secret = "dmVyeSBzZWNyZXQgdG9rZW4K" -modules_enabled = {"http_oauth2"} ``` ## User authentication