Closed abidlabs closed 1 year ago
Auth is now working on Gradio 3.0 (thanks @pngwn!).
However, it does not work with Spaces -- so leaving this issue open (albeit renamed).
Still an issue, see: https://huggingface.co/spaces/abidlabs/hello-login
@abidlabs so this auth issue will be fixed in 3.2, right?
We are looking into it! cc @aliabid94
@YuliangXiu, to confirm, you are looking to add a username/password login to a Gradio demo you are hosting on Hugging Spaces? Can you simply make the Space private?
We are looking into it! cc @aliabid94
@YuliangXiu, to confirm, you are looking to add a username/password login to a Gradio demo you are hosting on Hugging Spaces? Can you simply make the Space private?
Once the auth works, just let me know. Then I will uncomment these codes. This is to make sure all the ICON users could approve the required MPI agreements before inference.
Closing thanks to #3049 by @freddyaboulton!
Closing thanks to #3049 by @freddyaboulton!
Hi Abidlabs,
CC: @abidlabs @aliabid94 @YuliangXiu @pngwn @freddyaboulton
Thanks for your fixing. It seems that this issue has been resolved. It can work well in Google Chrome Version 113.0.5672.92 (Official Build) (arm64) on "PC". (Gradio 3.29.0 + Python 3.8.9 + Huggingface Space).
But we have the same failed auth issue on the Mobile Chrome Web browser (Chrome, Safari). Do you have this issue on your Phone Browser?
Hi all - I am still having an auth issue with Gradio hosted on HF Spaces. The login works as expected on Firefox and Chrome on MacOS but fails on MacOS Safari and iOS Safari. The failure results in an empty login box refreshing after each correct login attempt - rendering the space unusable. Happy to provide further documentation or create a demo repo.
Hi all - I am still having an auth issue with Gradio hosted on HF Spaces. The login works as expected on Firefox and Chrome on MacOS but fails on MacOS Safari and iOS Safari. The failure results in an empty login box refreshing after each correct login attempt - rendering the space unusable. Happy to provide further documentation or create a demo repo.
I am also receiving this issue in Chrome and Safari as of April 2024. It happens regularly in Chrome Private Tabs or in Safari.
The space is currently only consistently useable in Firefox, but I can usually use it in chrome browser while logged in and not in private tab.
I can use the auth feature on MacOS Safari, but not on Ios Safari. It just redirects to login page. I'm not using private browsing mode.
Make sure your ios browser allows third party cookies @chigkim
Make sure your ios browser allows third party cookies @chigkim
Oh wow, that's a bad news! :( Doesn't iOS Safari have Prevent Cross-Site Tracking enabled as default? Everyone (99.99% over 9K people) at my work uses Apple device. I have to tell everyone to turn off Prevent Cross-Site Tracking? lol
The issue is specifically for spaces (or any website that embeds a gradio demo hosted on another site).
On Spaces, the actual server is hosted on a different domain and then served over an iframe on the space page. So that's why the authentication cookie counts as "third party". It's technically coming from a different site.
You can access the domain your space is hosted on directly and the issue shouldn't happen. You can get the domain your space is hosted on by clicking the Embed this Space
button in the options:
You can access the domain your space is hosted on directly and the issue shouldn't happen. You can get the domain your space is hosted on by clicking the
Embed this Space
button in the options:
Awesome, that worked! Then basically, if you 1) host your code on HF, 2) utilize auth feature, and 3) and don't want to tell people to turn of Prevent Cross-Site Tracking, instead of embedding on a website, you should really link the domain (hf.space) where your space is hosted on, and point users to the webpage directly. No other option than hosting on your own domain. Am I understanding it correctly? Thanks!
Is there an existing issue for this?
Describe the bug
auth
doesn't seem to be working in 3.0Reproduction
Check
demo\hello_login
Screenshot
No response
Logs
No response
System Info
Severity
blocker