Skip to content

Commit

Permalink
spec!: force 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 7703207
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions spec/mercure.md
Expand Up @@ -386,13 +386,8 @@ 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 7703207

Please sign in to comment.