Skip to content
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

Merged
merged 14 commits into from
Feb 17, 2023
Merged

Fix auth when connecting via HTTP #3223

merged 14 commits into from
Feb 17, 2023

Conversation

freddyaboulton
Copy link
Collaborator

@freddyaboulton freddyaboulton commented Feb 17, 2023

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=C02SPHC1KD1

Fixes #3171

Login spaces still works, test here: https://huggingface.co/spaces/freddyaboulton/hello_login_main
https_login_spaces

Login via http now works, test here: http://ec2-54-144-135-68.compute-1.amazonaws.com:7860/

http_login_spaces

Checklist:

  • I have performed a self-review of my own code
  • I have added a short summary of my change to the CHANGELOG.md
  • My code follows the style guidelines of this project
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

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.

@gradio-pr-bot
Copy link
Collaborator

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-3223-all-demos

@abidlabs
Copy link
Member

abidlabs commented Feb 17, 2023

Nice! Can confirm both links work for me, both in incognito and regular browsing mode. Shall we include this in 3.19.0?

@freddyaboulton
Copy link
Collaborator Author

Yes! Just modified the CHANGELOG and got rid of some of the code that was added in a separate branch I had lol

@freddyaboulton freddyaboulton marked this pull request as ready for review February 17, 2023 21:45
@abidlabs
Copy link
Member

Tested locally as well, works beautifully!

@freddyaboulton
Copy link
Collaborator Author

@aliabid94 @dawoodkhan82 Can you give the __gradio_loader__ changes a look?

@aliabid94
Copy link
Collaborator

Frontend LGTM!

@freddyaboulton
Copy link
Collaborator Author

Thanks for the review!!

@freddyaboulton freddyaboulton merged commit 9b2119f into main Feb 17, 2023
@freddyaboulton freddyaboulton deleted the 3171-fix-http-auth branch February 17, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot login to application when deployed on-premise
4 participants