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

How can I display a meaningful login error messages to user within python-social-auth?

I am using python-social-auth with Django 1.6 and things are working well. I defined SOCIAL_AUTH_LOGIN_ERROR_URL to point to a view I have within my app to show an error to the user when the login does not go as planned. My system does not allow…
Krystian Cybulski
  • 10,789
  • 12
  • 67
  • 98
3
votes
0 answers

python-social-auth partial pipeline setting form data to the session

I am using python-social-auth for login and to create a user profile. Unlike the profile example here which creates the profile at the end of the pipeline, my app shouldn't allow creating the user without a profile. I followed the Django example…
AAHM
  • 41
  • 7
3
votes
1 answer

Using python social auth to register users by access token

I found this snippet of code that helps me authenticate a user and then create a rest_framework token for them. The client I am using is a native android app and I will get the access token from the client side and post it to django in the…
zacmwa
  • 578
  • 10
  • 28
3
votes
1 answer

Django python-social-auth redirect on failure?

I'm adding google login to my django app for use in my office only. Logins work fine, but I'm trying to add better error pages. I've written a login error page at /login/error that gives a bit of information about what went wrong, but I can't seem…
Colin Murphy
  • 1,105
  • 3
  • 12
  • 22
3
votes
1 answer

Django/ python-social-auth: LinkedIn extra data returns null on some fields

I am using python-social-auth to retrieve LinkedIn profile data in Django. Login with LinkedIn is the link to login with LinkedIn.…
Deepti
  • 576
  • 2
  • 5
  • 15
3
votes
1 answer

python social auth load strategy and authenticate user manually with release 0.1.26

I used python social auth for social authentication in the last 2 months and it was great. I needed QQ support, hence installed newest git commit (23e4e289ec426732324af106c7c2e24efea34aeb - not part of a release). until now i used to authenticate…
OmriToptix
  • 1,219
  • 1
  • 15
  • 22
3
votes
4 answers

Add users logged in through Python Social Auth to a group

When users are signed up through Python Social Auth, they get created as users in my database, which is fine and dandy, however I want them to be added to a certain group upon user creation. How to do that?
Orca
  • 2,035
  • 4
  • 24
  • 39
3
votes
1 answer

Saving user's social auth name using python social auth in django

I work on django project that migrate from django social auth to python social auth. Previously new social auth user first name/last name will be saved automatically for first time login. Now after using python social auth, it's not. Seems I have…
mhd
  • 4,561
  • 10
  • 37
  • 53
3
votes
1 answer

python social auth duplicate entry

I'm using python-social-auth with django. I want to authorize via facebook, but before, I already registered in default way (email, password) with email that facebook use. Can I associate facebook account with registered account? I tried to search,…
streamride
  • 567
  • 4
  • 16
3
votes
1 answer

facing error while login with facebook using python-social-auth

I am using python-social-auth,problem is that when i am trying to login with facebook,here showing the error Invalid App ID: None and for that i have place the SOCIAL_AUTH_FACEBOOK_APP-ID and SOCIAL_AUTH_FACEBOOK_API_SECRET in my settings.py,and…
zogo
  • 495
  • 3
  • 10
  • 24
3
votes
2 answers

Social media link in Django

I want to set a social link at the end of my post in the Django template. how to use social media link in Django's post for sharing my posts in the social?
3
votes
3 answers

Django unit test; Login using python-social-auth

I would like to write unit tests for my Django app that is using python-social-auth. It all works great when running Django and using a browser, thanks python-social-auth! However, I can't seem to write unit tests because I can't create an…
2
votes
2 answers

JWT auth using python-social-auth and django-rest-framework

I'm trying to convert a snippet of code that I found (using python-social-auth) to make it handle JWT authentication instead of simple token authentification. Here is the…
2
votes
0 answers

Generating all third-party Django apps endpoints with drf-yasg

Is there a way for generating all third-party apps endpoints with drf-yasg? So I have installed social_django app and want to include all URLs it provides to swagger UI My urlpatterns urlpatterns = [ re_path('admin/', admin.site.urls), …
2
votes
1 answer

Associate user by email

I want to override the pipeline to associate user's with their email for accounts that are only active. But I need the backend for a regular login. The AUTHENTICATION_BACKENDS(django.contrib.auth.backends.AllowAllUsersModelBackend) allows for all…
Arundeep Chohan
  • 9,779
  • 5
  • 15
  • 32