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
7
votes
4 answers

ModuleNotFoundError: No module named 'jose'

I am using python-social-auth in my django project to use social platforms for authentication in my project. It all worked well but am getting this error ModuleNotFoundError: No module named 'jose' This is the whole error: [05/Apr/2020 14:01:00]…
Rakesh Majhi
  • 129
  • 1
  • 2
  • 8
7
votes
3 answers

Session state missing in python social auth

I followed this tutorial (https://artandlogic.com/2014/04/tutorial-adding-facebooktwittergoogle-authentication-to-a-django-application/) and I am getting following error. I have hosted my server on a EC2- instance and I have a domain…
Utkarsh Srivastav
  • 3,105
  • 7
  • 34
  • 53
7
votes
2 answers

Facebook Login and email verification

Has Facebook always verified the email addresses for their users? I am building an app with Django (using python-social-auth) where I want people to be able to login with their Facebook account. As far as I understand, the email is always verified.…
elena
  • 3,740
  • 5
  • 27
  • 38
7
votes
1 answer

How to test a custom python-social-auth pipeline?

So, I have created a custom pipeline for saving user's social profile data fetched from extra_data attribute of the user.social_auth model. I have thoroughly tested it, but manually. How do I automate testing for my custom pipeline, by using…
shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90
6
votes
1 answer

Using extra_data from python-social-auth in Django template

I am using python-social-auth to log in my own web application from LinkedIn. I successfully logged in and redirect to my home page. The next step is to utilize the extra data (i.e. UserSocialAuth.extra_data). Could anyone give a example about how…
Mouwu Lin
  • 61
  • 2
6
votes
0 answers

django rest framework social auth flow

I'm new to django and social auth. I'm trying to make a site where people login (with google) and post stuff. I was using python-social-auth and the user was getting logged in just fine. Then I wanted to use DRF and it needed it's own authentication…
6
votes
5 answers

Session value missing after redirect with django python-social-auth

I am working on a django project using python-social-auth to do authentication with facebook. I am running the django server on localhost and have facebook set up with my application to redirect to http://127.0.0.1:8000/complete/facebook/, which…
6
votes
1 answer

How to use the django-rest-framework-social-oauth2 with facebook Oauth2?

I have read the documentation here: django-rest-framework-social-oauth2, but everything is very unclear to me (It's my first time working with this). and by the end it shows some configuration of how to do the settings to use facebook Oauth2. And…
6
votes
2 answers

Issues with username field in Python-social-auth

I am using Python socia auth for face-book. I have modified default Django behavior of User Model and removed username field . I have added this in custom user model : USERNAME_FIELD = 'email' BUt I am getting this error when trying to login…
n.imp
  • 787
  • 4
  • 11
  • 29
6
votes
3 answers

django makemigrations with python-social-auth leads to permission denied error

After adding python social auth to my installed apps, i.e. INSTALLED_APPS = ( ... 'social.apps.django_app.default', ... ) and then trying a python manage.py makemigrations I get an unsurprising permissions error Migrations for…
mjandrews
  • 2,392
  • 4
  • 22
  • 39
6
votes
3 answers

redirect to last page not working on python social auth

I'm using python social auth to use social logins but I'm unable to redirect to the last page after successful login. For instance if I'm on the following page http://localhost:8000/docprofile/14/and click the login button, instead of redirecting…
James L.
  • 1,143
  • 22
  • 52
6
votes
1 answer

Django. Python social auth. create profiles at the end of pipeline

I want to add a function at the end of the auth pipeline, the function is meant to check if there is a "Profiles" table for that user, if there isn't it will create a table. The Profiles model is a table where I store some extra information about…
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
5
votes
1 answer

Getting "AuthStateMissing ... Session value state missing." when going to callback URI when using AtlassianOAuth2 with Django

I was trying to setup oauth2 authentication in a Django app. Here's my settings: *other parts ommited* # AUTH STUFF AUTHENTICATION_BACKENDS = ( 'social_core.backends.atlassian.AtlassianOAuth2', …
5
votes
1 answer

Google Authentication using django-rest-framework and python-social-auth

Question in short: Login with DRF, python-social-auth and Angularjs works with Facebook but not Google. I'm building a django app that needs to enable users to signup/login via Facebook and Google in addition to locally stored email/password combo.…
5
votes
2 answers

Python Social Auth duplicating e-mails for different users

In my website it is possible to login through: username and password e-mail and password google auth 2 facebook Where I am using django user built in system and python social auth. The problem: Suppose I create the following account: username:…
Lorenzo SC
  • 175
  • 1
  • 15
1 2
3
37 38