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
288 stars 20 forks source link

FOSRestBundle & LexikJWTAuthenticationBundle integration #7

Closed wajaja closed 3 years ago

wajaja commented 5 years ago

Hi, how can i integrate this bundle in my stateless app ? Note: I already have a token generated after the authentication of the user; I would like to use this token as the Authorization Bearer in mercure

rimoi commented 5 years ago

If you use FosUserBundle for authentication, it should not work because your token is not signed by JWT

Note : you can watch this good tutorial that was done by grafikart

chalasr commented 3 years ago

I'm closing here as this is getting old and didn't receive much feedback. Also I'm not sure such a feature would make sense at all but in case it does, it should probably be handled on LexikJWTAuthenticationBundle' side. Please feel free to comment if you think it's still relevant so that we can consider to reopen.