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