omab/django-social-auth — Issue #271: StopPipeline does not stop partial pipelines
Author: snanda85
Created: 2012-02-24 18:23:29+00:00
State: open

I raised a StopPipeline exception after a partial pipeline redirect.
But when coming back to the same auth page for a new transaction, I got an exception that continue_pipeline got two arguments for pipeline_idx.

So I added the following lines at backends/__init__.py at line 148

except StopPipeline:
# Stop partial pipelines too
request = kwargs.get('request')
if request:
partial_pipeline_name = setting('SOCIAL_AUTH_PARTIAL_PIPELINE_KEY', 'partial_pipeline')
if partial_pipeline_name in request.session:
del request.session[partial_pipeline_name]
break

Please patch the above code, if the approach looks fine.