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

django-social-auth not redirecting to provided next query param for SAML login

I have a django application that uses django-social-auth and allows for three types of SSO authentication, Google, Office 365, and SAML2.0. In the case of SAML2.0, the application allows the end user to specify their own IdP, and to enable that, we…
2
votes
1 answer

Integrate python-social-auth to drf-spectacular (Swagger)

I have a Django (DRF) project with OAuth2 based on python-social-auth and Swagger based on drf-spectacular. I need to integrate these two libraries together so that Swagger allow OAuth2 authorization, for example Google OAuth2. I found OAuth2…
voilalex
  • 2,041
  • 2
  • 13
  • 18
2
votes
1 answer

No module named 'social_django' but 'social-auth-app-django' is installed

Summary of Issue I am creating a Django project and attempting to setup Auth0 integrations. Per Auth0's documentation, I installed the social-auth-app-django library which then went and also installed social-auth-core. So please note that both these…
2
votes
0 answers

Python Social Auth Partial Pipeline to return a JSON response

I'm trying to implement a partial pipeline with rest framework which checks if a user have an email or not. If there's no email, it should return a json response with a message and a api endpoint to where user can post email data. After posting an…
Surya Bhusal
  • 520
  • 2
  • 8
  • 28
2
votes
1 answer

Some settings seem useless in DRF Social OAuth2

So i am using DRF Social Oauth2 to implement social authentication in DRF. While setting the settings.py we need many things to do like adding some apps to installed apps etc. We also need to set these two settings; SOCIAL_AUTH_GOOGLE_OAUTH2_KEY =…
2
votes
0 answers

How do I run some code when a user signs up with python-social-auth in Django?

I'm using Django and python-social-auth and when a user signs up I want to call the API of another service to add the user to it (think something like Mailchimp). What's the correct way of doing it? My app has a backend which is API only written in…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
2
votes
2 answers

Django: Add data to JWT payload

I want to add data (such as the token expiration date or user info) to the payload of the JWT generated by this library. The current decoded payload of a JWT generated by this library is the following: { "token":…
2
votes
0 answers

How can I disconnect social auth from django with social-auth-app-django library using rest API

I am using two social auth libraries in django framework social-auth-app-django and graphql-social-auth. I have successfully implemented the login functionality using these libraries but now I want to introduce a feature in my app to disconnect…
2
votes
0 answers

python-social-auth redirect to the user profile in Django

I am using the wonderful python-social-authpackage, and more precisely the social-auth-app-django version since my project is using the Django Framework. Once the user is registered/logged in via any social backend, I'd like to redirect the user to…
Dalvtor
  • 3,160
  • 3
  • 21
  • 36
2
votes
1 answer

Google Auth using social-auth-app-django on project(Django + React)

I have project with Djang + React and I need using Google OAuth2 to authenticate user login. Looks like social-auth-app-django is popular package to use for Django, and I had a search on how to use it. But I could not find any example with React on…
2
votes
1 answer

Issue creating a django user with python-social-auth with a custom User model and UserManager

Seems like this isn't a unique problem, but I'm missing something in the solution. I'm using python-social-auth and logging in with Google. All seems to be going well, until it gets to the create_user part of the pipeline. I do have a custom User…
Greg
  • 6,453
  • 9
  • 45
  • 61
2
votes
1 answer

Get phone number with django social auth GOOGLE_OAUTH2

I want to save phone number when signin with GOOGLE_OAUTH2, for that I set the following settings - SOCIAL_AUTH_GOOGLE_OAUTH2_IGNORE_DEFAULT_AX_ATTRS = True SOCIAL_AUTH_GOOGLE_OAUTH2_AX_SCHEMA_ATTRS = [ ('phonenumber',…
2
votes
0 answers

Social auth login using JWT in Django - This authorization code has expired

I am a Python newbie and I want to integrate the functionality for social login in my Django project, using JWT authentication. I used this package, but the documentation of this project is not good. It shows that I need to send an object {…
2
votes
0 answers

How to fix social_core.exceptions.AuthMissingParameter error

I am trying to implement a google login onto my project. I already had a relatively working login scheme when I tried to use social_core's oauth with google to log in with a google account. It keeps throwing a…
2
votes
1 answer

Social login(facebook) with Django Rest Framework always return Invalid Token

I build my login through this tutorial. I try make a login by facebook on endpoint .../social/facebook/, and always, a receive this json response: { "errors": { "token": "Invalid token", "detail": "400 Client Error: Bad Request…