Open thompsonson opened 10 months ago
conversation ticking over: https://discordapp.com/channels/879548962464493619/1192136028434206791/1193503534025560154
Check out https://www.gradio.app/guides/sharing-your-app#o-auth-login-via-hugging-face 🙂
that's what I'd looked at 🙂 I was investigating implementing HuggingFace as a provider in Django-AllAuth.
Here's the code: https://github.com/pennersr/django-allauth/commit/62d3f8aad7935ae17613c7ab8a30abef73e67285
I've had a look and I do not see that your web/hub platform is open source (understandable 🙂 ) so I don't think I can fix https://huggingface.co/oauth/userinfo not being present.
If the web/hub is open source please point me at the code and I'll have a look.
Otherwise I'm parking this part of my project. I think I'll come back and refactor the Gradio Oauth component to work with other providers.
https://huggingface.co/oauth/userinfo returns a 404, as such information relating to the user cannot be retrieved.
Posted on Discord: https://discordapp.com/channels/879548962464493619/1192136028434206791