cellxgene_VIP icon indicating copy to clipboard operation
cellxgene_VIP copied to clipboard

launch cellxgene with password

Open FADHLyemen opened this issue 3 years ago • 1 comments

Hi Is there a simple way to launch cellxgene instance with a password so only users with a password can access it?

FADHLyemen avatar May 01 '22 04:05 FADHLyemen

Hi Fadhl,

Are you familiar with Apache reverse proxy module? You can use Apache to set up a public website first, and then reverse proxy to the real Cellxgene instant. In Apache, you can set up basic http authentication (i.e., .htaccess, .htpasswd).

--Derrick

From: Fadhl @.> Reply-To: interactivereport/cellxgene_VIP @. @.***>> Date: Sunday, May 1, 2022 at 12:41 AM To: interactivereport/cellxgene_VIP @.> Cc: Subscribed @.> *Subject: *[EXTERNAL] [interactivereport/cellxgene_VIP] launch cellxgene with password (Issue #74)

Hi Is there a simple way to launch cellxgene instance with a password so only users with a password can access it? — Reply to this email directly, view it on GitHub [github.com http://github.com], or unsubscribe [github.com http://github.com]. You are receiving this because

ZjQcmQRYFpfptBannerStart

*This Message Is From an External Sender *


*EXTERNAL EMAIL: *Use caution before replying, clicking links, and opening attachments.

ZjQcmQRYFpfptBannerEnd

Hi Is there a simple way to launch cellxgene instance with a password so only users with a password can access it?

— Reply to this email directly, view it on GitHub [github.com] https://urldefense.com/v3/__https:/github.com/interactivereport/cellxgene_VIP/issues/74__;!!LqrO4s96!l-1sdH2QkGA7OxO6yGcJUn7nICPjH--6_zYUtCZZqdx5nBp4NRKjhpTRpGagFQoYwPo0Zt12DD71499t2k7pKN_Ufj7f$, or unsubscribe [github.com] https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AHBU2TDN73IFJJN7ZHN76QLVHYDNXANCNFSM5UZJSQBQ__;!!LqrO4s96!l-1sdH2QkGA7OxO6yGcJUn7nICPjH--6_zYUtCZZqdx5nBp4NRKjhpTRpGagFQoYwPo0Zt12DD71499t2k7pKCJFpZLr$. You are receiving this because you are subscribed to this thread.Image removed by sender.Message ID: @.***>

interactivereport avatar May 02 '22 16:05 interactivereport

@FADHLyemen Other than adding Apache server, another way would probably be to modify the cellxgene server/app/app.py and add HTTPBasicAuth to get a simple password protection.

You might want to have a look of this link, https://flask-httpauth.readthedocs.io/en/latest/.

I put an example to this filebin. You might want to have a look and see if that helps :) The file will work with their latest commit that added support with cellxgene 1.1.1. Once you finished all the VIP setup, you just need to replace the file with the one inside the filebin. The path will be around /opt/conda/lib/python3.8/site-packages/server/app/app.py, depending on the Python version you are using.

michaeleekk avatar Oct 28 '22 10:10 michaeleekk