voryx / Thruway

PHP Client and Router Library for Autobahn and WAMP (Web Application Messaging Protocol) for Real-Time Application Messaging
MIT License
674 stars 117 forks source link

Authorization based on content #323

Closed simonquest closed 4 years ago

simonquest commented 5 years ago

Hi there,

I was successfully using an old version of Thruway to let users subscribe to several topics and, in particular, I had implemented an AuthorizationManager so that users could only subscribe to content they had permissions for: eg. users could subscribe to topic like mywebsite.project.{id} and authorizationmanager would allow subscription if a query to db would show that user has access to that particular project.

Now I'm trying to do the same thing on another project using the latest version of Thruway, where authorization happens using static rules, at least that's my understanding... How can I check if user has credentials to subscribe to a specific topic? btw, I'm working with symfony 3.4 (LTS).

Thanks

mbonneau commented 4 years ago

@simonquest I am not sure what version you went from/to. I am closing this issue now as it is pretty old. Open a new issue if needed.