Skip to content

Commit

Permalink
specforce the publisher JWT to contain the allowed topics
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Feb 22, 2022
1 parent 658fb96 commit 25e9df7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions spec/mercure.md
Expand Up @@ -386,12 +386,7 @@ To be allowed to publish an update, the JWS presented by the publisher **MUST**
called `mercure`, and this claim **MUST** contain a `publish` key. `mercure.publish` contains an
array of topic selectors. See (#topic-selectors).

If `mercure.publish`:

* is not defined, then the publisher **MUST NOT** be authorized to dispatch any update

* contains an empty array, the publisher **MUST NOT** be authorized to publish private updates,
but can publish public updates for all topics.
If `mercure.publish` is not defined, then the publisher **MUST NOT** be authorized to dispatch any update

Otherwise, the hub **MUST** check that every topics of the update to dispatch matches at least one
of the topic selectors contained in `mercure.publish`.
Expand Down

0 comments on commit 25e9df7

Please sign in to comment.