mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +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:
parent
338b4cb2e7
commit
2223d6b914
1 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,9 @@ final class PhutilAsanaAuthAdapter extends PhutilOAuthAuthAdapter {
|
|||
}
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in a new issue