From a26ef9b5561fd7e2a88d5ea581abde1347112a18 Mon Sep 17 00:00:00 2001 From: Jeyhun Piriyev Date: Sun, 1 Dec 2024 23:32:21 +0400 Subject: [PATCH] Fix: Resolve duplicate scope and scope_delimiter parameters in SocialLoginSerializer's OAuth2Client initialization --- dj_rest_auth/registration/serializers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/dj_rest_auth/registration/serializers.py b/dj_rest_auth/registration/serializers.py index ea9abab..11780f4 100644 --- a/dj_rest_auth/registration/serializers.py +++ b/dj_rest_auth/registration/serializers.py @@ -118,8 +118,6 @@ def validate(self, attrs): _('Define client_class in view'), ) - provider = adapter.get_provider() - scope = provider.get_scope_from_request(request) client = self.client_class( request, app.client_id, @@ -127,7 +125,6 @@ def validate(self, attrs): adapter.access_token_method, adapter.access_token_url, self.callback_url, - scope, scope_delimiter=adapter.scope_delimiter, headers=adapter.headers, basic_auth=adapter.basic_auth,