From 00a9bb041f5466f2beae35e7050d87a4214fbf06 Mon Sep 17 00:00:00 2001 From: Bhagirath Radadiya Date: Fri, 22 Sep 2023 13:07:13 +0530 Subject: [PATCH] if social auth for trello then scope arguments is not getting for request token method --- social_core/backends/oauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/social_core/backends/oauth.py b/social_core/backends/oauth.py index d5c069f7..53df7765 100644 --- a/social_core/backends/oauth.py +++ b/social_core/backends/oauth.py @@ -247,7 +247,8 @@ def request_token_extra_arguments(self): def unauthorized_token(self): """Return request for unauthorized token (first stage)""" params = self.request_token_extra_arguments() - # params.update(self.get_scope_argument()) + if self.name not in ['trello']: + params.update(self.get_scope_argument()) key, secret = self.get_key_and_secret() state = self.get_or_create_state() response = self.request(