Phabricator-Asana integration is broken

Reproduction Instructions

  1. Try to log into Phabricator with Asana as the OAuth provider.
  2. You can’t.

Phabricator/Arcanist Version
Phabricator commit: be2b8f4bcb62deb953049debacfbc7dca2e6edef

The problem is because the Asana API no longer returns the “id” field for the endpoint /api/1.0/users/me, and instead returns the “gid” field.

This should be a fairly quick fix in ./applications/auth/adapter/PhutilAsanaAuthAdapter.php.

More info about the Asana API change at https://forum.asana.com/t/asana-is-moving-to-string-ids-updated-with-revised-timeline/29340/23.

Thanks!

Thanks, I filed this upstream as https://secure.phabricator.com/T13453 and fixed everything I could find.