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
11
votes
2 answers

How to retrieve Facebook friend's information with Python-Social-auth and Django

How can I retrieve Facebook friend's information using Python-Social-auth and Django? I already retrieve a profile information and authenticate the user, but I want to get more information about their friends and invite them to my app. Thanks!
10
votes
1 answer

Generating an access token programatically with Django OAuth2 Toolkit

I'm using Python Social Auth and Django OAuth Toolkit to manage my user accounts and restrict access to my REST API. I can create a token for users that sign up manually with my app by using the regular curl -X POST -d…
Felix D.
  • 2,180
  • 1
  • 23
  • 37
10
votes
2 answers

Django REST Framework and python-social-auth for registration/login user

I have to implement some REST api for mobile application. I would to use Django REST framework. The user (mobile side) can register an account only using Facebook, I would to use python-social-auth for this registration / login. I'm new for this so…
Safari
  • 11,437
  • 24
  • 91
  • 191
9
votes
1 answer

Django - DRF (django-rest-framework-social-oauth2) and React creating a user

I'm using the DRF and ReactJS and I am trying to login with Patreon using django-rest-framework-social-oauth2. In React, I send a request to the back-end auth/login/patreon/ and I reach the Patreon OAuth screen where I say I want to login with…
Programmingjoe
  • 2,169
  • 2
  • 26
  • 46
9
votes
2 answers

Decide when to refresh OAUTH2 token with Python Social Auth

I believe this is mostly a question about best practices. I have an OAUTH2 provider that issues access tokens (valid for 10 hours) as long as refresh tokens. I found here that it is pretty easy to refresh the access token but I cannot understand how…
Giovanni Di Milia
  • 13,480
  • 13
  • 55
  • 67
9
votes
3 answers

python oauthlib: in escape ValueError "Only unicode objects are escapable"

I'm using python-social-auth to login with social networks from my Django application. On my local machine everything works fine, but when I deploy to a server I get the following error: oauthlib.oauth1.rfc5849.utils in escape ValueError: Only…
cansadadeserfeliz
  • 3,033
  • 5
  • 34
  • 50
9
votes
1 answer

python-social-auth backend not found for linkedin oauth2

I am trying to incorporate linkedin oauth2 in my app using python-social-auth. However, when i navigate to 127.0.0.1:8000/login/linkedin/ in Chrome I get a "Backend not found" error. Specifically, the logs display the following errors: [08/Sep/2014…
i_trope
  • 1,554
  • 2
  • 22
  • 42
9
votes
4 answers

Logout with python-social-auth

I am dabbling a little with Python Django Social Auth using Twitter authentication. I can login. But, when I try to log out using django.contrib.auth.logout, it doesn't log out. What's the way to logout? Thanks.
rookieRailer
  • 2,313
  • 2
  • 28
  • 48
8
votes
3 answers

How to force redirect_uri to use HTTPS with python-social-app?

I am using django framework with python-social-app and have an error while trying to login with Facebook login button. My app consists of three docker containers: Django app. Database. NGINX + SSL cert. Here is my error: Authentication process…
8
votes
7 answers

Check if current user is logged in using any django social auth provider

I would like to check if a user is logged in via social authentication or using the django default authentication. something like if user.social_auth = true?
vinCi
  • 91
  • 1
  • 7
8
votes
2 answers

How to authenticate by Access Token in code using python-social-auth

I have a REST API and I need to authenticate users via Facebook Login API. Access Token should be obtained in mobile app (I guess) and then sent to the server. So I have found some code in old tutorial and I can't make it work. Here's the code: from…
Dmitrii Mikhailov
  • 5,053
  • 7
  • 43
  • 69
8
votes
2 answers

Open New Window for Social Login and then Close and Return to Parent On Success with Django

I'm working with Django 1.6.2 and Python-Social-Auth 0.1.23. I'm also working with Twitter Bootstrap as my templating engine. I've worked python-social-auth into my template and implemented a LinkedIn log in for my customers and I've coded it so…
gh0st
  • 1,653
  • 3
  • 27
  • 59
8
votes
1 answer

Duplicate email using both python-social-auth and email registration in Django

I'm using both python-social-auth and email registration in my project. For the user model I use a subclass of AbstractBaseUser: class User(AbstractBaseUser): USERNAME_FIELD = 'email' AUTH_USER_MODEL = 'userprofile.User' But when a user that…
8
votes
1 answer

python-social-auth partial pipeline can not resume

I am trying to collect the password for the new user with partial pipeline of python-social-auth. For some unknown reason, I am not able to resume the pipeline, the page render back to the password collection page after I submit the form. What's…
user3179510
  • 323
  • 3
  • 9
8
votes
1 answer

Python Social Auth NotAllowedToDisconnect at /disconnect/facebook/1/

I'm trying to use logout with Python Social Auth in a Django app, but I'm getting NotAllowedToDisconnect at /disconnect/facebook/1/ These are my settings: SOCIAL_AUTH_PIPELINE = ( 'social.pipeline.social_auth.social_details', …
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
1
2
3
37 38