apple: Rewrite comment in tests in generate_access_url_payload.

The original comment is worded rather unclearly, we should explain these
details better.
This commit is contained in:
Mateusz Mandera 2021-05-23 17:17:16 +02:00 committed by Tim Abbott
parent 9aab03654e
commit 2e2bcd9619

View File

@ -2537,8 +2537,9 @@ class AppleIdAuthBackendTest(AppleAuthMixin, SocialAuthBase):
)
def generate_access_url_payload(self, account_data_dict: Dict[str, str]) -> str:
# The ACCESS_TOKEN_URL endpoint works a bit different in standard Oauth2,
# where the token_data_dict contains some essential data. we add that data here.
# The ACCESS_TOKEN_URL endpoint works a bit different than in standard Oauth2,
# and here, similarly to OIDC, id_token is also returned in the response.
# In Apple auth, all the user information is carried in the id_token.
return json.dumps(
{
"access_token": "foobar",