Skip to content

Commit

Permalink
spec: improve the Subscribers section
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Aug 12, 2022
1 parent 1bcd315 commit 67b31cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/mercure.md
Expand Up @@ -431,6 +431,9 @@ To receive updates marked as `private`, a subscriber **MUST** prove that it is a
least one of the topics of this update. If the subscriber is not authorized to receive an update
marked as `private`, it **MUST NOT** receive it.

If the presented JWS contains an expiration time in the standard `exp` claim defined in [@!RFC7519],
the connection **MUST** be closed by the hub at that time.

To receive updates marked as `private`, the JWS presented by the subscriber **MUST** have a
claim named `mercure` with a key named `subscribe` that contains an array of topic selectors. See
(#topic-selectors).
Expand Down Expand Up @@ -473,9 +476,6 @@ Consequently, this private update will be received by this subscriber, while oth
a canonical topic matched by the selector provided in a `topic` query parameter but not matched by
selectors in the `mercure.subscribe` claim will not.

If the presented JWS contains an expiration time in the standard `exp` claim defined in [@!RFC7519],
the connection **MUST** be closed by the hub at that time.

## Payload

The `mercure` claim of the JWS **CAN** also contain user-defined values under the `payload` key.
Expand Down

0 comments on commit 67b31cb

Please sign in to comment.