Comments (12)
Also: I have added both our dev and www servers to the Facebook callback URLs.
from social-app-django.
@imbaggaarm it may happen due to many different reasons, but mainly due to social-app not expecting some responses from some providers.
You should track your particular case to see what is coming back and then do something about this.
I'm not pretty sure about the sources of this error, I switched to django-allauth
this evening and also had some troubles with the production even when in the localhost, it works well. So I spent almost 1 hour to search for the solution, and I solved it by setting the ACCOUNT_DEFAULT_HTTP_PROTOCOL = True
in settings. I think maybe this problem also comes from that source too, I haven't tried to come back to this library in order to test it, but maybe you can try setting the SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
in settings. :))
from social-app-django.
Long story short, just add these two line in settings.py, to force your main app and SOCIAL_AUTH using HTTPS as required by Facebook and GitHub
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
ACCOUNT_DEFAULT_HTTP_PROTOCOL = True
from social-app-django.
Same error here 😞
from social-app-django.
i'm running into the same error. any resolutions?
from social-app-django.
Also running into this issue..
from social-app-django.
Any news?
My secret is correct, app is not in development mode, certificate is super valid, yet I am getting the very same error (except with my redirect url)
from social-app-django.
Really? Nobody solved it even the author? I'm also getting this error :))
from social-app-django.
@imbaggaarm I've solved it via adding SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
to settings and also changing pipeline a bit with some extra exception processing
from social-app-django.
@imbaggaarm I've solved it via adding
SOCIAL_AUTH_FACEBOOK_SCOPE = ['email']
to settings and also changing pipeline a bit with some extra exception processing
But why and when it happens? In my cases, it happens every time. Users can not log in to my website using Facebook =.=. Can you explain more detail about the solution that you used to get over this bug? Thank you very much.
from social-app-django.
@imbaggaarm it may happen due to many different reasons, but mainly due to social-app not expecting some responses from some providers.
You should track your particular case to see what is coming back and then do something about this.
from social-app-django.
Long story short, just add these two line in settings.py, to force your main app and SOCIAL_AUTH using HTTPS as required by Facebook and GitHub
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True ACCOUNT_DEFAULT_HTTP_PROTOCOL = True
thx man, this fixes my error
from social-app-django.
Related Issues (20)
- Telegram login support HOT 2
- Fix missing 'jose' module HOT 3
- Missing migrations in v5.1.0 ? HOT 10
- Only perform verification or update existing user
- Missing migrations on 5.2.0? HOT 2
- Django 4.2.2 breaks the way JSONField behaves HOT 1
- Question. Request additional Google Permissions outside of login flow
- SAML redirect loses session data storing "next" url and RelayState cannot be used instead
- Requiring POST method by default HOT 1
- Social Auth with Gmail SSO Causing Error --> 'str' object has no attribute 'get' HOT 2
- 5.2.0 not compatible with Django >= 4.2.2
- How to override a field of `AbstractUserSocialAuth` HOT 1
- IrreversibleError when migrating app zero for a new DB HOT 1
- Subclassing AbstractUserSocialAuth creates migration in social_django app. HOT 1
- 5.3.0 migrations feedback HOT 9
- Deprecated Sign In with LinkedIn HOT 2
- Enhance Django OAuth Library for Clean JSON Responses in API Development
- Linkedin complete login step is stuck
- AWS Cognito - Invalid scope error on authentication request HOT 1
- Update to social-core 4.5.2 HOT 1
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 social-app-django.