1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00

Update Asana Auth adapter for "gid" API changes

Summary: Ref T13453. The Asana API has changed, replacing all "id" fields with "gid", including the "users/me" API call result.

Test Plan: Linked an Asana account. Before: error about missing 'id'. After: clean link.

Maniphest Tasks: T13453

Differential Revision: https://secure.phabricator.com/D20899
This commit is contained in:
epriestley 2019-11-08 08:46:37 -08:00
parent 338b4cb2e7
commit 2223d6b914

View file

@ -14,7 +14,9 @@ final class PhutilAsanaAuthAdapter extends PhutilOAuthAuthAdapter {
} }
public function getAccountID() { public function getAccountID() {
return $this->getOAuthAccountData('id'); // See T13453. The Asana API has changed to string IDs and now returns a
// "gid" field (previously, it returned an "id" field).
return $this->getOAuthAccountData('gid');
} }
public function getAccountEmail() { public function getAccountEmail() {