-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing authentication issue #92
Comments
I've gotten a little further: I've added an authorization manager thus:
Class:
I can see the onSessionJoin and onSessionLeave events in my CLI, but when I try to publish, subscribe or call, nothing happens. |
So adding trusted_url and trusted_port allows me to publish from server to a specific user by authid (ie. user id), thusly:
Class:
|
K, yet more implementation: I can now register when client subscribes (with https://github.com/voryx/ThruwaySubscriptionMeta)
Still unable to publish and call from client |
Hey,
I've created a worker service as follows:
voryx.yaml:
Class:
Client:
When I set authentication to false under voryx_thruway.router, I get the in my console as result '11'. All ok sofar. Also on subscribing to 'websocket.subscription', when I subsequently do the publish, I get the response I'm expecting.
Then I implemnet authentication following this post http://voryx.net/integrating-symfony-authentication-for-thruwaybundle/:
voryx.yaml:
class
Now authentication works when I create a connection from client side as such:
As long as my token is still valid, connection succeeds. However, the 'websocket.call' and 'websocket.publish' no longer work. I've put some logging in my worker __construct method, and it logs nothing. When I set voryx_thruway.router.authentication back to false, I get logging and everything works again.
I'm using latest versions of Symfony 4, this bundle and Autobahn.js.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: