Comments (6)
I have been reviewing the app's code and Facebook's oauth process and it looks like this is not a django-social-auth bug, it is a Facebook's bug. As I said before my Site URL
is correct, the way you send the redirect_url
is correct too, but I get to:
http://127.facebook.com/complete/facebook/?code=....
instead of:
http://127.0.0.1:8000/complete/facebook/?code=....
If I had a wrong redirect_url sent I would get this:
{ "error": { "type": "OAuthException", "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration." } }
But I'm not, so this is one of those problems related to Facebook's love machine, that one that turn's dev's hate and desperation into love :)
Anyways, you might be interested in mentioning this in the README, so others don't think something is broken when testing locally.
Best regards,
Miguel Araujo
from django-social-auth.
Hi,
I think Facebook doesn't accept 127.0.0.1 as a redirect url config, instead what I do is setup myapp.com as redirect url and then edit my /etc/hosts file to map:
127.0.0.1 myapp.com
This is just for testing purposes and should be changed to correct site URL once it's deployed, also helps to have a development Facebook app.
I'll close the report because there's no bug on the app, but we can keep discussing it.
from django-social-auth.
I didn't know that, but I find it out after debugging the process. I think you should mention this somewhere in the README.
I was going to close it, but I wanted you to read it :) Thanks
from django-social-auth.
Done 5132bc2
Thanks!
from django-social-auth.
Great app, great developer! If you keep the pace, this will be the most popular social app for Django. I'm recommending it everywhere :)
from django-social-auth.
Thanks for the kind words :D
Yeah, spread the word, that will make this app even better.
Thanks,
Matías
from django-social-auth.
Related Issues (20)
- Facebook: Authentication process canceled
- link to documentation does not work HOT 1
- 401 Client Error: Unauthorized for url: https://oauth.vk.com/access_token HOT 4
- KeyError at /complete/facebook/ ---- 'access_token' HOT 5
- Read The Docs 404 HOT 2
- Cannot resolve keyword 'response' into field. Choices are:
- Documentation link is broken HOT 1
- LinkedIn v2 update
- Manual Create User with access Token HOT 1
- Link to documentation is broken HOT 4
- Disable firstname, lastname field
- Documentation link leads to ReadTheDocs template
- social_core.exceptions.AuthFailed: Authentication failed: SAML login failed: ['invalid_response'] HOT 1
- Token POST request hangs with ASGI
- create_user is not getting called HOT 1
- pyhton3 to python
- It is not compatible in Django version 4 or later
- What about Azure AD?
- linkedin complete login step is stuck
- Is it possible to support two different Google Auth app ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-social-auth.