gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Auth is broken on Spaces

Open abidlabs opened this issue 2 years ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

auth doesn't seem to be working in 3.0

Reproduction

Check demo\hello_login

Screenshot

No response

Logs

No response

System Info

3.0b5

Severity

blocker

abidlabs avatar May 14 '22 06:05 abidlabs

Auth is now working on Gradio 3.0 (thanks @pngwn!).

However, it does not work with Spaces -- so leaving this issue open (albeit renamed).

abidlabs avatar May 17 '22 14:05 abidlabs

Still an issue, see: https://huggingface.co/spaces/abidlabs/hello-login

abidlabs avatar Jul 11 '22 09:07 abidlabs

@abidlabs so this auth issue will be fixed in 3.2, right?

YuliangXiu avatar Aug 22 '22 09:08 YuliangXiu

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?

abidlabs avatar Aug 22 '22 20:08 abidlabs

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.

YuliangXiu avatar Aug 22 '22 21:08 YuliangXiu

Closing thanks to #3049 by @freddyaboulton!

abidlabs avatar Jan 31 '23 19:01 abidlabs

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?

  • Alan M

AlanMars avatar May 18 '23 03:05 AlanMars

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.

efbsecond avatar Jan 30 '24 21:01 efbsecond

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.

ARusterholz-edu avatar Apr 05 '24 17:04 ARusterholz-edu