i use sockjs-tornadowithin a sockjs tornado handler how can i determine the current_user ?
i have user session "token" stored in a secure cookie.
i cannot access the secure cookie value from the sockjs handler
rabbitmq and mongodb are part of my stack ( will they help in the process ? )
i have devised a way:
1. generate a unique id
2. store unique id in a normal cookie
3. create a rabbitmq queue with unique id as the routing key and push messages into it regarding the user
4. the sockjs handler can get the unique id in the cookie and consume user data and delete the queue
5. thus user data is obtained, further data about the user can be obtained by a pymongo query
is this a good secure way of doing it ?
is there a more efficient way ?