symfony / mercure-bundle

The MercureBundle allows to easily push updates to web browsers and other HTTP clients in the Symfony full-stack framework, using the Mercure protocol.
https://symfony.com/doc/current/mercure.html
MIT License
286 stars 20 forks source link

add support for two jwt secret : publisher & subscriber #91

Open Grummfy opened 4 months ago

Grummfy commented 4 months ago

Mercure allow to have two secret, but the bundle only allow one.

https://mercure.rocks/docs/hub/config

dunglas commented 4 months ago

The bundle only supports publishing, it doesn't support subscribing (for now at least), so it makes sense to support only the publishing JWT.

Grummfy commented 4 months ago

But in the front part (twig), we subscribe, no?

dunglas commented 4 months ago

Indeed! You're right. Would you mind to open a PR to support setting two different keys?

Grummfy commented 4 months ago

I will try, but I with pleasure. No sure to understand the impact on the cookies side. But at least I can initiate it.

Le ven. 31 mai 2024, 10:55, Kévin Dunglas @.***> a écrit :

Indeed! You're right. Would you mind to open a PR to support setting two different keys?

— Reply to this email directly, view it on GitHub https://github.com/symfony/mercure-bundle/issues/91#issuecomment-2141534986, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFDJBB7AFKXB5I33N2UVULZFA3HNAVCNFSM6AAAAABIDHYRY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRGUZTIOJYGY . You are receiving this because you authored the thread.Message ID: @.***>