Social Auth - SOCIAL_AUTH_PIPELINE - Part 6

It might be useful to run specific tasks when a user logs in using social authentication. For these cases we can use the SOCIAL_AUTH_PIPELINE previously declared in the settings.py

 

def manage_user(backend, user, response, *args, **kwargs):
    print(backend)
    print(user)
    print(response)



SOCIAL_AUTH_PIPELINE = (
    ...
    'polls.pipeline.manage_user',
)


 


Python 3.12
Django==4.2


22 July 2024 | Last Updated: 19 Nov. 2025 | jaimedcsilva

Related
  • Social Auth - Setting up - Part 1
  • Social Auth - Google Cloud Platform - Part 2
  • Social Auth - Google Login - Part 3
  • Social Auth - Facebook Developers - Part 4
  • Social Auth - Facebook Login - Part 5
  • Social Auth - SOCIAL_AUTH_PIPELINE - Part 6

  • Buy Me a Coffee