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
5
votes
0 answers

How can I allow users to register with an email using django-rest-framework-social-oauth2?

I'd like users to be able to register without using a 3rd party if they so choose. Few sites require a username to login anymore, so I'd like to use emails instead of usernames. django-rest-framework-social-oauth2 combines python-social-auth and…
5
votes
3 answers

How to use flask-migrate with other declarative_bases

I'm trying to implement python-social-auth in Flask. I've ironed out tons of kinks whilst trying to interpret about 4 tutorials and a full Flask-book at the same time, and feel I've reached sort of an impasse with Flask-migrate. I'm currently using…
5
votes
0 answers

Python Social Auth Redirect to Wrong URL

I use python-social-auth for my django site, let's say: example.io. It was working. But, after redeploy, and try to log in via Twitter, it redirect to wrong URL, example only, without the .io I also tried to use another url, staging.example.io, it…
ismailsunni
  • 1,458
  • 1
  • 24
  • 32
5
votes
1 answer

python social auth and django, email empty with Facebook api 2.4

I am using python social auth with my django project for providing Facebook login functionality. I can see the email being supplied from facebook in the popup. But it is coming as empty in my partial pipeline. The same code was working fine with my…
Anurag
  • 1,521
  • 2
  • 17
  • 34
5
votes
2 answers

Using Python-social-auth the social-user is not being set in the pipeline

AttributeError at /complete/google-oauth2/ 'NoneType' object has no attribute 'provider' This happens with a new or already registered user at this line https://github.com/omab/python-social-auth/blob/master/social/actions.py#L69 and is a new…
bungleofsketches
  • 554
  • 1
  • 7
  • 18
5
votes
1 answer

Python-Social-Auth shows 'AuthStateForbidden' sometimes

Sometimes when I try to log-in or register with Facebook or Google it returns me an error AuthStateForbidden screen But just refreshing the page or trying again after a while, it run correctly. I've tried adding Google+ API in Google developers but…
Gocht
  • 9,924
  • 3
  • 42
  • 81
5
votes
0 answers

Django Rest Framework authentication with OAuth2

Let's say I want to build an iOS app that uses a RESTful API as a backend. I'd want to use Django Rest Framework for that. For three reasons: Python is awesome Django is awesome Django Rest Framework is popular and well documented My app would…
Felix D.
  • 2,180
  • 1
  • 23
  • 37
5
votes
2 answers

Python Social Auth- import error when using Google Authentication

I successfully followed along this blog entry more than a month ago:http://www.artandlogic.com/blog/2014/04/tutorial-adding-facebooktwittergoogle-authentication-to-a-django-application/ When I created a new environment, and recreated the steps, I'm…
DataSwede
  • 5,251
  • 10
  • 40
  • 66
5
votes
1 answer

python social auth: Google login Error: invalid_client

I'm using python social auth to implement google login on my app. But I get the following error Error: invalid_client The OAuth client was not found. I've tried adding a product name same as my project name and email address. But I still get this…
James L.
  • 1,143
  • 22
  • 52
5
votes
2 answers

AttributeError: 'DjangoStrategy' object has no attribute 'backend' python social auth

This worked last week. Maybe I did something wrong and messed it up somewhere else, or maybe it is a bug, or maybe it is just an update and I missed it while reading the docs. I have a pipeline that gets the user's avatar and saves the URL: def…
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
5
votes
4 answers

Python Social Auth get Google avatar

Is there a way to get the Google profile picture url using python social auth? So, this is what I do for facebook and twitter, add a pipeline with this code: if strategy.backend.name == 'facebook': url =…
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
5
votes
1 answer

What's the best way to register a new user on Python-Social-Auth without a social backend?

I know that can sound a little confuse, but some sites allows mutiple ways to sign up, like using a social network (FB or TW, of course I'm using python-social-auth for this porpouse) or use a form to create a new user... are there a way to…
D33pN16h7
  • 2,030
  • 16
  • 20
4
votes
1 answer

How to associate existsing users from django.contrib.auth with Python Social Auth (Google backend)?

I have a Django app with a standard django.contrib.auth backend and have a lot of existing users, now I want to add login via Google account using Python Social Auth. Is there any way to allow login via Google account for existing users? How should…
Cox Dev
  • 41
  • 2
4
votes
1 answer

Python Social Auth with Django - how to retrieve extra data?

For my first Django project I wanted to tie up Python Social Auth for the social authentication (namely Facebook). Django==2.0 social-auth-app-django==2.1.0 social-auth-core==1.7.0 How can I retrieve extra data from the logged in user's profile? My…
4
votes
2 answers

403 error because `id_token` being used as `access_token` in Django + python-social-app

I am confused. I am using the Django configuration for python-social-auth (spcefically social-auth-app-django v1.2.0) to get Google+ backend authentication working. I get this error: requests.exceptions.HTTPError: 403 Client Error: Forbidden for…
Paul
  • 2,409
  • 2
  • 26
  • 29