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