staskobzar / amiws

Asterisk Management Interface (AMI) to Web-socket proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Token authentication in websocket

giandiego opened this issue · comments

Congratulations on the excellent work.

I did all the tests and it works as indicated, I just have a question, is it possible to add token authentication to the websocket?

If this is how I could do it, if not, where could I start?

I am attentive, thank you. (Excuse my English, it is not my native language.)

Hello,
Thank you for good words.
It's been a long time I haven't work with this project. I think it is possible to do but I am not sure when I will have time to do that.
However, you can try to use nginx as proxy for your authentication. I think it is more flexible for the tasks like that and you can use get parameter as token or even http headers for authentication.
If it does not work for you then let me know and I will try to implement it when I have time.
Thanks