doushih06137 2014-07-16 23:20
浏览 1455

WebSocket客户端身份验证方法

How to authenticate the client connecting to the websocket server?

In http we could use Oauth 2.0 to authenticate the user and the client too. But in websocket I am not able to understand how to do so.

As far as I can understand for authentication of the user connecting we could just ask the client to send a message with a token to authenticate the user. But how to prevent an un-identified client to connect to the server?

Isn't there any header for token based authentication for websocket as that would allow for both the authentication simultaneously just as in any Oauth 2.0 Rest api authentication.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料
    • ¥15 使用R语言marginaleffects包进行边际效应图绘制