gpustat-web icon indicating copy to clipboard operation
gpustat-web copied to clipboard

HTTP Authentication

Open wookayin opened this issue 6 years ago • 0 comments

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.

wookayin avatar Feb 12 '19 19:02 wookayin