user is always anon
user is always anon even after session configured through redis
Can you put here your redis session configuration? Do you use SncRedisBundle for this purpose?
I have the same problem. I followed ClientSetup and SessionSetup and I would like to retrieve the authenticated user when some one suscribe to my topic. I didn't understand something I think, but what ? Any idea, please ?
Same here, I followed exactly the readme "Session sharing and user authentication" > "Symfony PDO Session Handler". (symfony 3.2.1)
It seems the bundle is registering an anonymous token instead of a UserInterface.. Perhaps from WebsocketAuthenticationProvider.php.. Session identifiers in the ratchet console and stored in database are not the same, is it normal ?
In "Session sharing and user authentication", do we have to follow "Client Storage" in more of "Symfony PDO Session Handler" ?
Ok, well. 2 days in hell, but I think I found what's happens ! We must use the same host than the web socket server. The WebSocketServer host must be the same than the VHOST one. Perhaps we may add 'origins' to allow another host, dunno. @remigarcia did you configure a VHOST to access to your app ? :-)