def _redirect(self, request, action):
        callback_url = request.build_absolute_uri(reverse(self.callback))
        request_token = self.client.request_token()
        request.session.update({
            REQUEST_TOKEN_FORMAT % self.client.base_url: request_token,
            ACTION_FORMAT % self.client.base_url: action,
        })
        redirect_url = self.client.get_url(action, token=request_token, callback_url=callback_url)
        return HttpResponseRedirect(redirect_url)
dataset/ETHPy150Open dgouldin/django-socialite/socialite/apps/base/oauth/decorators.py/OAuthMediator._redirect/original