Open PhilippHandke opened 6 years ago
Pusher and User anthentication are agnostic. Read this : https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/master/Resources/docs/SessionSetup.md it explain how configure things to get authenticator working. The drawback is that you need a shared session storage (redis, pdo etc)
User authentication is working great except for the pusher service (e.g. WampPusher
) which is using Gos\Component\WebSocketClient\Wamp\Client
. The Client
-class is lacking the authentication functionality: 😟
public function setAuthenticationToken()
{
/* @todo **/
}
Ends up always getting an "anon"-User while using the pusher.
Are we missing something else?
Authentication is working properly with all users accessing the WS-Server. We only do not get the pusher into sending messages because authentication still fails.
Is there some way to allow access for all users that are on the same host (eg. 127.0.0.1), do we need some kind of token for our pusher to exchange authentication information, or how does the server determine the credentials of our pusher?
For establishing a secure connection, we use the authentication feature to check access to our topics:
When using the pusher from a local command line script, it does not get authenticated and our messages cannot be pushed into the channels.
How can we establish this while using our authentication method?