equal
deleted
inserted
replaced
41 pseudo-JID must be given a 'publisher' affiliation. This should work |
41 pseudo-JID must be given a 'publisher' affiliation. This should work |
42 nicely with the `autocreate_on_publish` setting, where the first actor |
42 nicely with the `autocreate_on_publish` setting, where the first actor |
43 to attempt to publish to a non-existant node becomes owner of it, which |
43 to attempt to publish to a non-existant node becomes owner of it, which |
44 includes publishing rights. |
44 includes publishing rights. |
45 |
45 |
|
46 ## WebSub |
|
47 |
|
48 ``` {.lua} |
|
49 -- Per node secrets |
|
50 pubsub_post_secrets = { |
|
51 my_node = "shared secret" |
|
52 } |
|
53 |
|
54 -- Same secret for all nodes |
|
55 pubsub_post_secret = "shared secret" |
|
56 ``` |
|
57 |
|
58 This enables the |
|
59 [WebSub](https://www.w3.org/TR/2018/REC-websub-20180123/) [Authenticated |
|
60 Content |
|
61 Distribution](https://www.w3.org/TR/2018/REC-websub-20180123/#authenticated-content-distribution) |
|
62 authentication method, where payloads are signed using a shared secret. |
|
63 |
46 ## Setting up affiliations |
64 ## Setting up affiliations |
47 |
65 |
48 Prosodys PubSub module supports [setting affiliations via |
66 Prosodys PubSub module supports [setting affiliations via |
49 XMPP](https://xmpp.org/extensions/xep-0060.html#owner-affiliations), in |
67 XMPP](https://xmpp.org/extensions/xep-0060.html#owner-affiliations), in |
50 trunk since [revision |
68 trunk since [revision |