I am still getting this error when using Django + python social auth and using a @strategy decorator for a function:
@strategy()
def register_by_access_token(request, backend, *args, **kwargs):
access_token = kwargs.get('access_token')
if not access_token:
raise AuthMissingParameter(backend, 'access_token')
user = backend.do_auth(access_token)
if user and user.is_active:
login(request, user)
return user
I am still getting this error when using Django + python social auth and using a
@strategydecorator for a function:TypeError: "get_strategy() got multiple values for keyword argument 'request'"The code I am using is as follows:
It looks like
load_strategyhttps://github.com/omab/python-social-auth/blob/master/social/apps/django_app/utils.py#L22 has request in itskwargswhich gets passed toget_strategyalong with therequest=Noneparameter https://github.com/omab/python-social-auth/blob/master/social/strategies/utils.py#L14