简体   繁体   English

如何验证 WebSocket 连接

[英]How to authenticate WebSocket connection

https://devcenter.heroku.com/articles/websocket-security为什么本文中描述的基于票证的身份验证系统比在第一条 websocket 消息中发送用户名和密码并像这样验证连接更必要?

sending a username and password in the first websocket message在第一条 websocket 消息中发送用户名和密码

That would require that you either re-prompt the user for their password (annoying) or store the user password in browser storage (very bad) until the websocket session is started.这将要求您重新提示用户输入密码(烦人)或将用户密码存储在浏览器存储中(非常糟糕),直到 websocket 会话启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何验证Websocket连接 - How can I authenticate websocket connection 如何在码头验证Websocket客户端? - How to authenticate websocket client in jetty? 如何验证客户端和服务器位于单独域中的websocket连接? - How can I authenticate a websocket connection where client and server reside on seperate domains? 如何在 django 频道上使用 Knox 令牌身份验证对 websocket 连接进行身份验证? - How do you authenticate a websocket connection with Knox token authentication on django channels? 使用websocket连接时,对用户进行身份验证的可能方法有哪些? - What are the possible ways to authenticate user when websocket connection is used? 如何在javascript中通过网络套接字验证每个请求? - How to authenticate every request over a websocket in javascript? 验证 Adonis Websocket 连接 - Authenticate Adonis Websocket Connections 如何在Play的2.0 WebSocket中验证用户身份? - How can I authenticate user in Play's 2.0 WebSocket? 如何通过python中的票证对WAMP连接进行身份验证 - How to authenticate a WAMP connection via a ticket in python 使用令牌对Websocket客户端进行身份验证? - Authenticate websocket clients using tokens?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM