symfony / mercure

The Mercure Component allows to easily push updates to web browsers and other HTTP clients using the Mercure protocol.
https://symfony.com/doc/current/components/mercure.html
MIT License
414 stars 39 forks source link

Impossible to provide mercure.payload #69

Closed norkunas closed 2 years ago

norkunas commented 3 years ago

Based on mercure specs payload could be included in the jwt so it's exposed through subscriptions, but creating jwt cookie with Authorization service doesn't allow that.

dunglas commented 3 years ago

Good catch, we should add a new attribute for this.

norkunas commented 3 years ago

What about just merging with mercure claim if it is provided in additionalClaims?

dunglas commented 3 years ago

Indeed it's maybe even better as it's future proof. We could also do both!