Simon Biggs

Results 652 comments of Simon Biggs

@rembishj this was also of interest to you I believe. (I don't have Chris' GitHub username to ping him, does he have a GitHub account?)

It would be worth noting that if one was to deploy this to the public internet on their own server, the above authentication approach isn't sufficient protection. One would also...

Here is the nginx config I use to get a reverse proxy to work with Streamlit: https://github.com/CCA-Physics/physics-server/blob/be4cb735b70f663427d23b9b3a95e03aa0c4ec98/RCCC/docker/nginx/nginx.conf#L14-L25 For websocket support the key parts for websocket support are the following: https://github.com/CCA-Physics/physics-server/blob/be4cb735b70f663427d23b9b3a95e03aa0c4ec98/RCCC/docker/nginx/nginx.conf#L21-L24...

...hmm... here is some information on what is needed to implement websocket proxying should it be undergone in Python: http://nginx.org/en/docs/http/websocket.html

...I haven't read too much around it, but does it seem like flask-socketio itself could be used to forward through the websocket requests? This does feel a bit like shooting...

> Thanks Simon! Useful comments. I'll work my way through some of the documentation and see if I can get something up and running as a starting point. Nice talk...

Heya @pchlap, Here is an example where someone has gone down the nginx + docker route for Streamlit: https://discuss.streamlit.io/t/authenticated-full-stack-streamlit-with-docker/8307?u=simonbiggs Not as simple for people to set up, but gets the...

And, here's a demo using https://github.com/oauth2-proxy/oauth2-proxy, which, awesomely they produce a binary for both Windows and Linux: https://github.com/oauth2-proxy/oauth2-proxy/releases ...potentially, the Python code could run off and download the binary if...

And here's one that's right up the docker + nginx alley: https://github.com/sapped/flip

@pchlap I think I led us up the garden path on this one. Streamlit runs within tornado, we can patch the streamlit instance to include active directory/LDAP based login. Here's...