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

Django Python Social Auth only allow certain users to sign in

I want only users from a @companyname.net email or from a list of email addresses to be able to sign in with Python Social Auth through google+. How would I accomplish this? SOCIAL_AUTH_GOOGLE_OAUTH2_WHITELISTED_DOMAINS = ['companyname.net'] is…
3
votes
4 answers

python-social-auth: AttributeError at /complete/google-oauth2/: 'NoneType' object has no attribute 'provider'

I am using my corporate account (which is "Google for works" account) to implement Google oauth2.0 login in to my django application. Pipeline in "settings.py" looks like: SOCIAL_AUTH_PIPELINE = [ 'social.pipeline.social_auth.social_details', …
Nitin Verma
  • 206
  • 2
  • 14
3
votes
0 answers

How to completely stop pipeline in python-social-auth without throwing errors?

I need to customize pipeline for registration through the social networks. In case if user doesn't provide email, I want to revoke token and after that redirect user to specific page. I know, that there is SOCIAL_AUTH_LOGIN_ERROR_URL option in…
a.mastak
  • 61
  • 1
  • 8
3
votes
3 answers

Remove Python Social Auth from django admin

I tried unregistering the models from 'social.apps.django_app.default' app. But django says they are not registered. I don't understand how to remove Association, Nonce and UserSocialAuth from my django admin site. Thanks
Aarohi Kulkarni
  • 427
  • 2
  • 5
  • 19
3
votes
1 answer

Django. Python Social Auth get user backend

I haven't been able to find how to do this simple thing: I have two different type of users in my website, type A users registered with Facebook and type B users logged in with a regular user register form. ¿How can I find out if a user belongs to…
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
3
votes
1 answer

SocialAuth : Invalid Scopes: read_stream

I am implementing signup from facebook. I am using latest SocialAuth spring library: socialauth-spring-2.6.jar And I just fallowing sample application given by socialauthdemo application. My url is:…
Sun
  • 3,444
  • 7
  • 53
  • 83
3
votes
3 answers

Authentication failed: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I am using python 2.7.6, Django 1.8 and python-social-auth. While trying to authenticate via googleoauth2 I am getting this error. The traceback is attached. I have tried these - sudo apt-get install ca-certificates sudo apt-get install ntpdate But…
Ashish Gupta
  • 2,574
  • 2
  • 29
  • 58
3
votes
1 answer

python-social-auth with django /?next= variable

I am using python-social-auth with django 1.7. I have the following code in my settings.py SOCIAL_AUTH_LOGIN_URL = '/accounts/login' SOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/accounts/add_college' SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/' However, when my…
Poorva Rane
  • 93
  • 2
  • 13
3
votes
1 answer

SAML2 Service Provider on non standard port behind a reverse proxy

I have a SAML2 service provider (Open edX Platform if it makes a difference), configured according to docs and otherwise working normally. It runs at http://lms.local:8000 and works just fine with TestShib test Identity Provider and other 3rd party…
J0HN
  • 26,063
  • 5
  • 54
  • 85
3
votes
1 answer

Can't disconnect user with python-social-auth (Error 405)

I'm working on a little Django app where users are able to connect to Facebook and Google after they login. However, I'm unable so far to disconnect users. When clicking on disconnecting it just goes to a white page and it shows error 405. This is…
aldo_vw
  • 608
  • 6
  • 17
3
votes
1 answer

Receiving error: django.core.exceptions.ImproperlyConfigured

I installed Python Social Auth on my vm and tried to run makemigrations and receiving this error: Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File…
Maxsteel
  • 1,922
  • 4
  • 30
  • 55
3
votes
1 answer

social.actions.do_complete not working in python-social-auth

I am trying to add email authentication with python-social-auth. Documentation says that: Form submit should go to /complete/email, or if it goes to your view, then your view should complete the process calling social.actions.do_complete In my case,…
Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91
3
votes
1 answer

What is the purpose of the psa decorator and how do we use it?

I've been using python-social-auth for a few weeks in a Django project. Now I am reaching the point where I need to authenticate a user from a view (that is, not through the template tags such as social:begin) and the documentation makes use of the…
Buddyshot
  • 1,614
  • 1
  • 17
  • 44
3
votes
1 answer

Multiple pipelines in python social auth

I am using python social auth to log users into my django-created website with their facebook/twitter/google + accounts. I would like to have 2 different pipelines for my login and registration buttons. Is that possible? thanks.
Fabio
  • 3,015
  • 2
  • 29
  • 49
3
votes
2 answers

Python Social auth redirecting to the same URL

After I choose some view with the decorator login_required() the user is redirected to: http://example.com/login/?next=/anuncio/adicionar/, right? But, after I use "Login with facebook", the user are redirected to http://example.com/login/#= instead…