Comparison

mod_pubsub_post/README.markdown @ 3501:1df139b157fb

mod_pubsub_post: Add support for WebSub authentication
author Kim Alvefur <zash@zash.se>
date Fri, 24 Aug 2018 14:52:09 +0200
parent 3256:0992c0398783
child 3502:42e9e3c5eb02
comparison
equal deleted inserted replaced
3500:e86315c9b5c4 3501:1df139b157fb
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