Questions tagged [django-socialauth]

python-socialauth is the new port from django-social-auth to a more general solution for social authentication/authorization.

django-socialauth is a social authentication/authorization mechanism for Django projects. It provides user registration, login and connection using social sites credentials. The following providers are available:

Google OpenID Google OAuth Google OAuth2 Yahoo OpenID OpenID (like MyOpenID) Twitter OAuth Facebook OAuth LiveJournal OpenID Orkut OAuth LinkedIn OAuth

The projects code is hosted @ https://github.com/omab/django-social-auth

Documentation is available @ http://django-social-auth.readthedocs.org/en/latest/index.html

A Demo is available @ http://social.matiasaguirre.net/

414 questions
4
votes
0 answers

django rest framework social auth oauth2

I' m working on django rest framework (django 2) for the backend with angular 5 for the client. I'm using this module for social auth. I have some important questions about it and my code below. From documentation we must send client_id, secret_id…
4
votes
2 answers

Valid OAuth redirect URIs for facebook - Django Social Auth

I am referring tutorials to implement django social-auth, I hace successfully implemented it for Twitter and Google+ . But, in case of facebook , I am not seeing "Valid OAuth redirect URIs" which has to provided for facebook. I assume that the new…
Shashank Vivek
  • 16,888
  • 8
  • 62
  • 104
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

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

Django Social Auth:Get email from linkedin,twitter & facebook

I'm using Django social_auth api for login via social account. Here I want to get email address from social account and stored it in my database table. The first-name and last-name can be retrieved from the account but I can't retrieved email…
user2251503
  • 197
  • 5
  • 13
4
votes
1 answer

Does Django flush the request.session object on User Login?

I am setting a session variable in my Django application, like this: request.session['something'] = True After this, I am redirecting the user to Login (via facebook - django-social-auth). After the user is successfully logged in, my session…
Siddharth Gupta
  • 897
  • 5
  • 20
4
votes
1 answer

How do I programmatically create a user with django_social_auth?

I'm writing some test scripts for a django application which relies on django_social_auth for managing user authentication and login (facebook login only). I'd like to bypass the login portion of django_social_auth - I already have some test users,…
blueberryfields
  • 45,910
  • 28
  • 89
  • 168
4
votes
1 answer

AuthFailed with django-social-auth & Facebook authentication

I'm using django-social-auth to do Facebook server-side authentication, and I am getting this error that I've been unable to track down: AuthFailed('There was an error authenticating the app'). I do NOT get this error when I test locally and I have…
4
votes
2 answers

Automatically refresh access token with django-social-auth (omab)

I am currently using django-social-auth to manage oauth2 registration with google-oauth2 for access to Google Drive. I have added offline access to my extra_arguments. Therefore Google returns a refresh token and it is stored by django-social-auth.…
4
votes
1 answer

How to fetch user's mobile number from facebook?

I am using django-social_auth to make users register and login via facebook. I want to access the phone number of the user. Tried searching on google and stackoverflow , but didn't find any answer. Searched the facebook docs as well. There I found…
Sahil kalra
  • 8,344
  • 4
  • 23
  • 29
4
votes
1 answer

Django social auth GitHub authentication

I'm new to Python and Django and am trying to get social auth (https://github.com/omab/django-social-auth) to work. I'd like to connect using Github, but am not having much success and the example provided is a bit overwhelming to someone starting…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
4
votes
2 answers

How to access request.user while testing?

I just moved from Django 1.3.1 to Django 1.4. Right after doing so, a real big number of my tests started to raise these errors: Traceback (most recent call last): File "/Volumes/Data/ADay/Website/Backend/(trunk)/project/tests/templatetags.py",…
marue
  • 5,588
  • 7
  • 37
  • 65
3
votes
1 answer

Django social-auth: Fetching date of birth, address, and more fields from facebook

I am using django-social-auth app for my social logging. Now I want to fetch more information from facebook like dob,address and many more. In this I tried using putting in settings FACEBOOK_EXTENDED_PERMISSIONS but it is not working for me. Please…
Paritosh Singh
  • 6,288
  • 5
  • 37
  • 56
3
votes
2 answers

How to set a redirection url in a template?

I'm using django-social-auth with Django 1.3.1 under Python 2.7.1. I've been looking all over the place and I can't quite figure out how to use a custom redirection url for Twitter Authentication (or other providers). I've read that I need to use…
mkoistinen
  • 7,724
  • 3
  • 41
  • 56
3
votes
0 answers

How to authorize my API requests with django google-auth?

I have implemented google-auth in my Django project, using allauth, and it works perfectly. After successful verification, I get some key from this view. from allauth.socialaccount.providers.google.views import GoogleOAuth2Adapter from…