Mercurial > prosody-modules
annotate mod_jsxc/README.md @ 6319:04c3273cb81f
mod_auth_cyrus: Add empty 'profile' table to SASL handler objects
This is for compatibility with Prosody's built-in util.sasl objects.
A SASL profile table usually includes methods supported by the backend, which
can be used by SASL mechanism handlers to perform operations (such as testing
the password). It also optionally contains a 'cb' field with channel binding
method handlers.
The Cyrus backend doesn't support channel binding, and doesn't have the same
concept of auth backend methods (it handles all that internally, and Prosody
has no insight or control over it).
Thus, we create an empty profile which informs Prosody that the SASL handler
does not support any of the auth or channel binding methods. Some features
will not work, but they didn't work anyway. This just makes it explicit.
This fixes a traceback in mod_sasl2_fast, which expected SASL handlers to
always contain a 'profile' field.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 04 Sep 2025 10:14:46 +0100 |
| parents | fe081789f7b5 |
| children |
| rev | line source |
|---|---|
| 5164 | 1 --- |
|
5165
f37d6adce06e
mod_jsxc: Add plugin installer metadata
Kim Alvefur <zash@zash.se>
parents:
5164
diff
changeset
|
2 rockspec: |
|
f37d6adce06e
mod_jsxc: Add plugin installer metadata
Kim Alvefur <zash@zash.se>
parents:
5164
diff
changeset
|
3 build: |
|
f37d6adce06e
mod_jsxc: Add plugin installer metadata
Kim Alvefur <zash@zash.se>
parents:
5164
diff
changeset
|
4 copy_directories: |
|
f37d6adce06e
mod_jsxc: Add plugin installer metadata
Kim Alvefur <zash@zash.se>
parents:
5164
diff
changeset
|
5 - templates |
|
f37d6adce06e
mod_jsxc: Add plugin installer metadata
Kim Alvefur <zash@zash.se>
parents:
5164
diff
changeset
|
6 dependencies: |
|
f37d6adce06e
mod_jsxc: Add plugin installer metadata
Kim Alvefur <zash@zash.se>
parents:
5164
diff
changeset
|
7 - mod_http_libjs |
| 5164 | 8 summary: JSXC demo |
| 9 --- | |
| 10 | |
| 11 Try out JSXC easily by serving it from Prosodys built-in HTTP server. | |
| 12 | |
| 5166 | 13 Uses [mod_http_libjs] to serve jQuery, on Debian you can `apt install |
| 14 libjs-jquery`. | |
| 15 | |
| 5164 | 16 # Configuration |
| 17 | |
| 18 mod_jsxc can be set up to either use resources from a separate HTTP | |
| 19 server or serve resources from Prosody's built-in HTTP server. | |
| 20 | |
| 21 ## Using CDN | |
| 22 | |
| 23 `jsxc_cdn` | |
| 24 : String. Base URL where JSXC resources are served from. Defaults to | |
| 25 empty string. | |
| 26 | |
| 27 `jsxc_version` | |
| 28 : String. Concatenated with the CDN URL. Defaults to empty string. | |
| 29 | |
| 30 ## Local resources | |
| 31 | |
| 32 Download a JSXC release archive and unpack it somewhere on your server. | |
| 33 | |
| 34 `jsxc_resources` | |
|
5167
272a8e54f0c8
mod_jsxc: Correct description of resources setting (thanks ham5urg)
Kim Alvefur <zash@zash.se>
parents:
5166
diff
changeset
|
35 : String. Path to the `dist` directory containing JSXC resources on |
|
272a8e54f0c8
mod_jsxc: Correct description of resources setting (thanks ham5urg)
Kim Alvefur <zash@zash.se>
parents:
5166
diff
changeset
|
36 the local file system. Disabled by default. |
| 5164 | 37 |
| 38 ## Other options | |
| 39 | |
| 40 `jquery_url` | |
| 41 : String. URL or relative path to jQuery. Defaults to | |
| 42 `"/share/jquery/jquery.min.js"` which will work with | |
| 43 [mod_http_libjs]. |
