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
1 answer

Integrate python-social-auth (social-app-django) to be used with the Django admin

I want to create an app that uses the django admin, but allows logins via google (my company google account) in place of the django default ModelAdmin. Currently, it looks like social-app-django (google) is the way to go, but after having installed…
monkut
  • 42,176
  • 24
  • 124
  • 155
4
votes
1 answer

Redirect to "next" after python-social-auth login

In my settings.py I have the following: LOGIN_URL = 'Eapp:login' LOGOUT_URL = 'Eapp:logout' LOGIN_REDIRECT_URL = 'Eapp:login' And in my template I've got the following Next…
vandelay
  • 1,965
  • 8
  • 35
  • 52
4
votes
2 answers

Adding a new backend in Python Social Auth

The docs for python-social auth describe how to add an authentication backend, but the don't say where to put the CLIENT_ID and CLIENT_SECRET of the new backed. Here are the docs in question:…
4
votes
3 answers

How can I refresh the token with social-auth-app-django?

I use Python Social Auth - Django to log in my users. My backend is Microsoft, so I can use Microsoft Graph but I don't think that it is relevant. Python Social Auth deals with authentication but now I want to call the API and for that, I need a…
NBajanca
  • 3,544
  • 3
  • 26
  • 53
4
votes
2 answers

Redirect to another domain after Python-social-auth login

Is it possible redirect to another web after login with python-social-auth? let's say: The example above is according to the documentation and it is working well, but when I…
Gocht
  • 9,924
  • 3
  • 42
  • 81
4
votes
1 answer

How to use python-social-auth with google only?

I'm trying to add google authentication to my project I installed it: pip install python-social-auth and added it in settings.py: SOCIAL_AUTH_USER_MODEL = 'accounts.CustomUser'## SOUTH_MIGRATION_MODULES = { 'default':…
4
votes
0 answers

Django social and site-local token-based authorization

I'm developing a web service on Django, and I want to make a token-based registration feature (to make it mobile-ready). After doing some searching, I found that there's a some beautiful ready to use applications: django-allauth, with social…
4
votes
0 answers

python-social-auth and disconnect from current facebook account

I looked up for an answer but were not able to find it. This is my scenario: a django application I'm using python-social-auth to connect to social networks, and Facebook in particular I'm using the default pipeline: SOCIAL_AUTH_PIPELINE = [ …
FSp
  • 1,545
  • 17
  • 37
4
votes
3 answers

Passing token to the client

I'm developing an iOS app and using Django for backend. There are two apps I'm using in Django Django OAuth Toolkit to support OAuth authentication Python Social Auth to support social authentication The social authentication process should…
Yuwen Yan
  • 4,777
  • 10
  • 33
  • 63
4
votes
3 answers

Facebook Doesn't Return Email Python Social Auth

here's my pipeline in settings.py: SOCIAL_AUTH_PIPELINE = ( 'social.pipeline.social_auth.social_details', 'social.pipeline.social_auth.social_uid', 'social.pipeline.social_auth.auth_allowed', …
4
votes
4 answers

Python social auth in Django, makemigrations detects no changes

I was following the documentation to get python social auth on my django project https://python-social-auth.readthedocs.org/en/latest/configuration/django.html And after adding 'social.apps.django_app.default', to the INSTALLED_APPS in my…
ScreenSeer
  • 549
  • 2
  • 9
  • 22
4
votes
1 answer

python-social-auth, logout without disconnect

Upon logout, wouldn't it be natural to remove the access tokens for social login? (User will be able to login with different social account next time he logs in) How do I do it with…
eugene
  • 39,839
  • 68
  • 255
  • 489
4
votes
1 answer

How do I migrate users from OpenID to Google OAuth2/OpenID Connect using Python Social Auth?

Google is deprecating the OpenID endpoint I was using (v1.0 I think, via the django_openid_auth module) and I need to update my app and migrate my users' accounts to use Google OAuth2. I've changed the app to use python-social-auth and have it…
Tom
  • 42,844
  • 35
  • 95
  • 101
4
votes
1 answer

How do I successfully pass variables to my python social auth pipeline?

I'm trying to do a pretty standard Django sign up process with Python Social Auth. In my case the user: Picks their plan Picks their location Creates an account I want to pass the the plan and location through the Python Social Auth process. I've…
Rob Osborne
  • 4,897
  • 4
  • 32
  • 43
4
votes
1 answer

force google to refresh token via python social auth

We're working on a project that depends on PSA (0.2.1) for authentications with google oauth2 (offline). Somehow we lost some refresh tokens of some users, we want to force those users to RE-AUTHENTICATE so we can get new refresh token from…
elmkarami
  • 133
  • 1
  • 8