I have a Django application which uses python-social-auth for authentication.
I have this in my django settings:
SOCIAL_AUTH_PIPELINE = (
...
'my.app.my.custom.pipeline',
)
How do I stop the whole user creation process in my custom pipeline?
I have tried throwing various exceptions including ValueError
and AuthException
but the created users remain in the database. Doesn't throwing an exception reverse the database transaction?