Closed TonyGao closed 7 years ago
Well, I have a try with WebsocketAppDemo, and I just use memory for authentication, the problem exist as well. By the way It's Symfony 3.2.
security:
providers:
in_memory:
memory:
users:
tony:
password: 123
roles: 'ROLE_USER'
Test source code here WebsocketAppDemo-test
It's hard to trace the problem, maybe WebsocketAuthenticationProvider can't get the right Session, and the $connection->Session is empty
Hi, I faced the same problem, the solution was in my case, that I had to set gos_web_socket host the same as my site url. ( if you access to your website from demosite.dev and you register websocket to demosite.dev:8080, it will work ).
@nash4ever you're right, I fix it, actually I config it as domain in the yml, but it still not work. Finally, as Jack said, Javascript client must connect to the domain too, but not 127.0.0.1 even if it's resolved by /etc/hosts. It's just because the bundle provide a mechanism to protect itself for cross domain websocket call, that's a great feature. Close the issue :) thx
Hi, there
Environment: Symfony 2.8.14, "friendsofsymfony/user-bundle": "~2.0@dev", "gos/web-socket-bundle": "^1.8"
After authenticated by fosuserbundle, I found I can't get user by user name with clientManipulator. Configuration as below
Any idea? What's wrong with it?