gpustat-web
gpustat-web copied to clipboard
HTTP Authentication
HTTP Basic Auth would work out, but standard HTTP authentication is not supported on Safari and WebSockets.
So, we can do the following:
- Add HTTP authentication on the HTML page, and set a Cookie (varies per session)
- Websocket packet includes the cookie, which is validated by the server app
In order to this we need to maintain an in-memory authentication information and mapping of user-cookie pairs.