-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix auth when connecting via HTTP #3223
Conversation
All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-3223-all-demos |
Nice! Can confirm both links work for me, both in incognito and regular browsing mode. Shall we include this in |
Yes! Just modified the CHANGELOG and got rid of some of the code that was added in a separate branch I had lol |
Tested locally as well, works beautifully! |
@aliabid94 @dawoodkhan82 Can you give the |
Frontend LGTM! |
Thanks for the review!! |
Description
Add an unsecured token that can be set/sent via HTTP. Also removing
__gradio_loader__
as that breaks auth on main, see: https://huggingface.slack.com/archives/C02SPHC1KD1/p1676671390297609?thread_ts=1676591517.723239&cid=C02SPHC1KD1Fixes #3171
Login spaces still works, test here: https://huggingface.co/spaces/freddyaboulton/hello_login_main
![https_login_spaces](https://user-images.githubusercontent.com/41651716/219797651-220b265a-4d73-496a-855a-5350b4b13acf.gif)
Login via http now works, test here: http://ec2-54-144-135-68.compute-1.amazonaws.com:7860/
Checklist:
A note about the CHANGELOG
Hello 👋 and thank you for contributing to Gradio!
All pull requests must update the change log located in CHANGELOG.md, unless the pull request is labeled with the "no-changelog-update" label.
Please add a brief summary of the change to the Upcoming Release > Full Changelog section of the CHANGELOG.md file and include
a link to the PR (formatted in markdown) and a link to your github profile (if you like). For example, "* Added a cool new feature by
[@myusername](link-to-your-github-profile)
in[PR 11111](https://github.com/gradio-app/gradio/pull/11111)
".If you would like to elaborate on your change further, feel free to include a longer explanation in the other sections.
If you would like an image/gif/video showcasing your feature, it may be best to edit the CHANGELOG file using the
GitHub web UI since that lets you upload files directly via drag-and-drop.