On upgrading python-social-auth from 0.1.17 to 0.2.4, session attribute is not provided in request, to custom pipeline method?

前端 未结 2 1616
没有蜡笔的小新
没有蜡笔的小新 2021-01-28 11:14

My social-auth pipeline is as follows:

SOCIAL_AUTH_PIPELINE = (
\'social.pipeline.social_auth.social_details\',
\'social.pipeline.social_auth.social_uid\',
\'soc         


        
相关标签:
2条回答
  • 2021-01-28 11:35

    This may be because user_details function doesn't pass anything to next function in pipeline. As per your requirement you might need to change the order of functions in your pipeline:

    Check this: https://github.com/omab/python-social-auth/blob/master/social/pipeline/user.py#L75

    0 讨论(0)
  • 2021-01-28 11:51

    https://github.com/omab/python-social-auth/issues/978

    Try to use

    strategy.request
    

    to access django request.

    0 讨论(0)
提交回复
热议问题