Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

apple: Rewrite comment in tests in generate_access_url_payload.

Mateusz Mandera2e2bcd9619f3
diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py
index 7e816d73bdc..b49eea0532d 100644
--- a/zerver/tests/test_auth_backends.py
+++ b/zerver/tests/test_auth_backends.py
@@ -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",