WebSub sequence diagram
Published:
Updated:
A sequence diagram for WebSub (formerly PubSubHubbub).
WebSub is the new W3C name for PubSubHubbub. It is a web based protocol for pubsub.
Sequence diagram
Phases:
- discovery, the subscriber discovers the URL of a hub where it can subscribe to notifications (about a topic)
- subscription, the subscribe subscribes to notifications (about a topic)
- notification, the publisher notifies the hub when the topic is updated
- content distribution, the hub delivers the update to the subscribers
- subscription, the subscriber may unsubscribe
Warning: Risk of reflected cross site scripting (and Content-Security-Policy bypass) in the WebSub intent verification
As part of the intent verification, the subscriber is expected to echo back the raw value of the hub.challenge parameter. There is a risk of cross-site scripting (XSS) attack if the response is served with a HTML content-type.
References
Specifications:
- W3C WebSub recommendation
- PubSubHubbub Core 0.3 specification
- PubSubHubbub Core 0.4 specification
- FHIRcast
- Webhooks Meta ~ Get Started
Hubs:
Misc: