Diff

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
line wrap: on
line diff
--- a/mod_pubsub_post/README.markdown	Fri Mar 29 17:06:18 2019 +0100
+++ b/mod_pubsub_post/README.markdown	Fri Aug 24 14:52:09 2018 +0200
@@ -43,6 +43,24 @@
 to attempt to publish to a non-existant node becomes owner of it, which
 includes publishing rights.
 
+## WebSub
+
+``` {.lua}
+-- Per node secrets
+pubsub_post_secrets = {
+    my_node = "shared secret"
+}
+
+-- Same secret for all nodes
+pubsub_post_secret = "shared secret"
+```
+
+This enables the
+[WebSub](https://www.w3.org/TR/2018/REC-websub-20180123/) [Authenticated
+Content
+Distribution](https://www.w3.org/TR/2018/REC-websub-20180123/#authenticated-content-distribution)
+authentication method, where payloads are signed using a shared secret.
+
 ## Setting up affiliations
 
 Prosodys PubSub module supports [setting affiliations via