javascript - How to make websocket authentication? -
I work on a web application and I want a user to receive live notifications through websites. These notifications should only be received by the user whose notifications are related. I wonder if a temporary authentication token (which is unique to the user) is a good idea to javascript and the script connects to the webserver server and an elephant To create authtoken as parameter, does it pass auth token to javascript and f Is there a secure solution to access through the websocket using this authentication token? Certainly the web app is also protected by SSL and web socket servers.
you can try the web application server authenticated by the web app server Will generate 1 key code (probably the MD5 username with salt) if the user sends it to the Web Socket Server web app for the valid Web API server server, the server sends it to authenticate the key to the client-side client's websocket This key will be sent to the server if The key to Kate - & gt; User is valid - & gt; OK, continue to move data between socket and client, other web socket server will close this connection.
This will be safe because the authentication key is unique and SSL will make it better hope it will help you and it was our solution to create our Forex system: CAS to send index data (single Sign On) and certify via WebCockets. In our case, CAS Server 1 will generate a single sign on ID, and we will use it to validate it.
Comments
Post a Comment