python-social-auth icon indicating copy to clipboard operation
python-social-auth copied to clipboard

Better document how the partial pipeline should be handeled

Open PetrDlouhy opened this issue 2 years ago • 1 comments

I am trying to get social login working together with django-two-factor-auth (so that it requires additional authentication step for users with 2FA enabled). I am now stuck for several hours on this step from documentation: Partial Pipeline

There is written:

When it’s time to resume the process just redirect the user to /complete// or /disconnect// view. The pipeline will resume in the same function that cut the process.

I have already figured out, that it is not very precise description, because I have to pass the partial_token token to that URL. But I am still stuck on the fact, that the pipeline is returning to the same (two factor authentication) step again and again. To overcome this I am trying to store somewhere the information that the user has been authenticated by 2FA, but I don't know how to access the pipeline correctly or if I am not doing it completely wrong.

I would be glad if this is documented more deeply, possibly with some examples. I could also help to extend the documentation if I know how to implement this correctly.

PetrDlouhy avatar Mar 10 '22 14:03 PetrDlouhy