auth: Fix incorrect encoding of whitespace in scope in Apple backend.

This commit is contained in:
Mateusz Mandera 2020-06-25 21:35:49 +02:00 committed by Tim Abbott
parent 51acca2672
commit be4aa65827
1 changed files with 2 additions and 0 deletions

View File

@ -1555,6 +1555,8 @@ class AppleAuthBackend(SocialAuthMixin, AppleIdAuth):
full_name_validated = True
REDIS_EXPIRATION_SECONDS = 60*10
SCOPE_SEPARATOR = "%20" # https://github.com/python-social-auth/social-core/issues/470
def is_native_flow(self) -> bool:
return self.strategy.request_data().get('native_flow', False)