kanaka/websockify — pull request #58 by mightypenguin (2012-09-12 16:58:04+00:00)
Title: Add authentication/firewall capability through shell call/args

This is based on Cliff Cypher's work. (https://github.com/ccyphers/websockify/commit/852de017686dd930399252ac8f1cda00a15a7a4e)
Let me know what you think. I believe I addressed your notes on his commit request.

I included an example script 'auth.py' to show how token based authentication would work.
This seems to be working fairly well atm.

example call:
./websockify --auth-hook='python auth.py' 10000 host:5900