app.go
8.6 KB
-
Authenticate WS connection using token · 0e81c484
Safari doesn't support basic authentication for websocket sessions. This commit introduces a token-based authentication only for websocket connection. The token is shared by all clients and that might be not secure. However, basic authentication itself is insecure and the credential is already shared by clients, so don't mind.
Iwasaki Yudai committed