Questions tagged [python-social-auth]

Python Social Auth is an easy to setup social authentication/registration mechanism with support for several frameworks and auth providers.

From its website:

Python Social Auth

Python Social Auth is an easy to setup social authentication/registration mechanism with support for several frameworks and auth providers.

Crafted using base code from django-social-auth, implements a common interface to define new authentication providers from third parties. And to bring support for more frameworks and ORMs.

Authentication backends

Python Social Auth supports Google, Twitter, Facebook, GitHub, and many other services out of the box. It also has direct support for OAuth and OpenID. It is designed to be easily extensible.

Links

557 questions
4
votes
2 answers

twitter login: 401 Client Error: Authorization Required

I'm using python-social-auth to implement twitter login locally but I get the 401 client error. My django version is 1.6. Traceback: File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response 112. …
James L.
  • 1,143
  • 22
  • 52
4
votes
1 answer

python-social-auth and Django, replace UserSocialAuth with custom model

I'm trying to integrate python-social-auth into an existent Django project. I want to use an existent model for a user's social accounts, instead of UserSocialAuth (my DB already has data with it, as well as some custom fields). Is there some…
yprez
  • 14,854
  • 11
  • 55
  • 70
4
votes
3 answers

python-social-auth with django. Can't get user email in VK.com

settings.py has: SOCIAL_AUTH_VK_OAUTH2_SCOPE = ['email'] But it doesn't work. Simultanously I can get email from Facebook.
Max
  • 519
  • 1
  • 7
  • 14
4
votes
1 answer

How can I ask for different permissions from facebook at different times?

Facebook recommends that when using facebook login you should initially ask the user for as few permissions as possible, and in particular avoid requesting publish permissions until the user needs to publish something via your site -…
3
votes
0 answers

I'm getting "social_core.exceptions.AuthForbidden: Your credentials aren't allowed" error in Django python-social-auth/social-auth-app-django

I am using social-auth library to authenticate user with OAuth2. I can authenticate user with accessToken and check infos included in this token. The token is valid. The problem appears in line: user =…
Karls
  • 31
  • 1
3
votes
2 answers

Get DRF token from python-social-auth backend

I am trying to integrate Social Authentication in my DRF backend. I decided to go with python-social-auth. If I serve my social login through Django (and an HTML view), I can see my login in successful. I also figured that I can redirect after…
DaveIdito
  • 1,546
  • 14
  • 31
3
votes
0 answers

Can't get python-social-auth to redirect to my custom urls after authentication

I would like python-social-auth to redirect to /?ref=twitter if user logs in through twitter, and /?ref=google if they login through google-oauth2. I installed the django version of the python-social-auth library using pip install…
Optimus
  • 2,716
  • 4
  • 29
  • 49
3
votes
0 answers

LinkedIn Oauth2.0 Django login using Python-social-auth, invalid redirect URI

I'm trying to add "Login via LinkedIn" functionality in my website. My Django project name is "botdjango" and app name is "botgetdata". These are the steps I followed- pip install social-auth-app-django Made these changes in "settings.py" …
minusv
  • 41
  • 5
3
votes
2 answers

social-auth-app-django facebook backend state with redirect_uri

I know my question sounds like a duplicate, but I've looked everywhere without finding any solution. I am working on implementing social logins for my django webapp. So far google, twitter and yahoo logins have worked as expected. But facebook…
chidimo
  • 2,684
  • 3
  • 32
  • 47
3
votes
2 answers

For some reason google oauth2 can signup into same user with different gmail emails

Sometimes when user signups with his gmail account to my service and then he signups with his G Suite account, both emails create record in UserSocialAuth model but to same django User. Can someone help me understand why this happens and how to…
Sardorbek Imomaliev
  • 14,861
  • 2
  • 51
  • 63
3
votes
1 answer

AttributeError at /account/login/oauth/complete/facebook/ 'NoneType' object has no attribute 'userprofile'

I have a problem, that instead of "User" Facebook account info is of "NoneType" type, so I can't save image as extended user model information (userprofile) after first facebook social authentication. If any additional information is needed please…
user7275377
3
votes
2 answers

Pinterest OAuth Redirect Uri not working

I've been trying to get the pinterest api working on my project but I keep running into an issue with the redirect_uri. This is the error message I am getting. { status : "failure", code : 7, host : "coreapp-ngapi-prod-0a018ab7", …
Reimus Klinsman
  • 898
  • 2
  • 12
  • 23
3
votes
2 answers

relation "social_auth_usersocialauth" does not exist. Migrate does not create these tables

I am using python-social-auth. But when I run makemigrations and migrate. The tables "social_auth-*" are not created. My settings.py looks like this INSTALLED_APPS += ( 'social.apps.django_app.default', ) AUTHENTICATION_BACKENDS += ( …
mbieren
  • 1,034
  • 8
  • 31
3
votes
2 answers

Google Oauth2 refresh token error using python-social-auth

I'm using python-social-auth and when I try to refresh my Google Oauth2 access token I get the following error: [2017-02-15 14:41:00,089: ERROR/MainProcess] Task tasks.tasks.test_login[169e5810-489d-4134-af8f-db3b80629fd2] raised unexpected:…
Paulo Fabrício
  • 319
  • 3
  • 17
3
votes
0 answers

how can we integrate any SSO provider using python social auth openid connect?

In my project, the customer can configure own SSO service via admin panel. can I create a genetic code? like this. Here I am using python social auth open_id module. python social auth created an example only for google OpenID connect i am following…
Ranvijay Sachan
  • 2,407
  • 3
  • 30
  • 49