You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voryx_thruway:
realm: 'realm1'
url: 'ws://127.0.0.1:8080' #The url that the clients will use to connect to the router
enable_logging: true
router:
ip: '127.0.0.1' # the ip that the router should start on
trusted_port: '8081' # Bypasses all authentication. Use this for trusted clients.
port: '8080' # public facing port. If authentication is enabled, this port will be protected
authentication: true # true will load the AuthenticationManager
authorization: thruway_auth_manager
When using my auth provider, the clientManager is not allowed to publish anymore. When there's no authentication, it works well.
I tried making this class a Client that I add as an internal client in the router command :
How can I tell Thruway this class is trusted and does not need to be authenticated? Must be a tiny config line I'm missing.
Been trying different things for days, debugging even Thruway files, I could find that if ($session->getTransport()->isTrusted()) of processMessage() is false on AuthenticationManager.php file.
Thanks.
The text was updated successfully, but these errors were encountered:
Ok so that's what I said, there's only a tiny config line missing. Not mentionned in the docs. Had to guess it with debug :
thruway.yaml
voryx_thruway:
realm: 'realm1'
url: 'ws://127.0.0.1:8080' #The url that the clients will use to connect to the router
trusted_url: 'ws://127.0.0.1:8081' # The url that the trusted clients will use !!!
enable_logging: true
router:
ip: '127.0.0.1' # the ip that the router should start on
port: '8080' # public facing port. If authentication is enabled, this port will be protected
trusted_port: '8081' # Bypasses all authentication. Use this for trusted clients.
authentication: true # true will load the AuthenticationManager
authorization: thruway_auth_manager
By default trusted url is 8080 even though trusted port is set to 8081...
Hello,
My issue seems very similar to this one : #92.
I have the very same listener class as in this tutorial : http://voryx.net/getting-started-with-the-thruwaybundle-for-symfony/
services.yaml
thruway.yaml
When using my auth provider, the clientManager is not allowed to publish anymore. When there's no authentication, it works well.
I tried making this class a Client that I add as an internal client in the router command :
ThruwayRouterCommand.php
How can I tell Thruway this class is trusted and does not need to be authenticated? Must be a tiny config line I'm missing.
Been trying different things for days, debugging even Thruway files, I could find that if ($session->getTransport()->isTrusted()) of processMessage() is false on AuthenticationManager.php file.
Thanks.
The text was updated successfully, but these errors were encountered: