)]}'
{
  "commit": "d1dfe0d84f37d5266b4d4255e9765063c720f01f",
  "tree": "aaffccee30d19c6d34149247b36d58309f7a8400",
  "parents": [
    "61d1cca10cee68c186d845f841cf28c5b8482d81"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Sun Sep 06 14:55:28 2026 +0200"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Sun Sep 06 17:11:44 2026 +0200"
  },
  "message": "Extract StandardResourceOAuthService for resource providers\n\ngithub, bitbucket, gitlab, tuleap, phabricator, airvantage and lemon\neach fetch a userinfo resource with the access token and map the JSON\nto OAuthUserInfo. Move that shared flow behind OAuthClient and a new\nStandardResourceOAuthService base: token exchange, the authorization\nredirect, the version and the fetch itself happen once, leaving each\nprovider only its resource URL and response mapping.\n\nOAuthClient gains getVersion so the service version comes from the\nclient, and get() throws on a non-2xx response, collapsing the several\nper-provider error paths into one.\n\nThe client is assigned in the subclass constructor rather than passed\nto super(), because super() runs before the provider has read its\nconfig. None of the seven providers import com.github.scribejava.*\nany more.\n\nChange-Id: I22d8333b0913f2ffec70e7f616fdefb940e41394\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6bff429e0362ef8dffc63c781a0c8bdb3bca9ea0",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/OAuthClient.java",
      "new_id": "f114b5ba09b4c25e8f6b2aaee7d879731c4ba2d6",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/OAuthClient.java"
    },
    {
      "type": "modify",
      "old_id": "ef3baa12d61a24c16adadb08a1a605101880b8ce",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/ScribeOAuthClient.java",
      "new_id": "481b9d233ca2bb0775cfae5de7b9cf1e7c22054d",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/ScribeOAuthClient.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3131113405a5f5a373415296a4ff13b6f34ee9ab",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/StandardResourceOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "07821ceffb07f9f7d241dc2b7954f24b4c306a1f",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/airvantage/AirVantageOAuthService.java",
      "new_id": "a94345dc9db8dce4db28a4b66cef528f172f9166",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/airvantage/AirVantageOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "3c0452e6c0cfa14fecc9ff0a248bf00ccb659890",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/bitbucket/BitbucketOAuthService.java",
      "new_id": "8bd833f071529b7ccf0f0a925135a35edb85d309",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/bitbucket/BitbucketOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "9f251ce997d22e8e6b6b2c75a1b3dbbd83c888a0",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/github/GitHubOAuthService.java",
      "new_id": "7f5c7dc9867964460c3e5ee941e50d3244458a40",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/github/GitHubOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "0af8effa10b3789f794d59da002847a4f3ddb5e7",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/gitlab/GitLabOAuthService.java",
      "new_id": "19dc86aeb6cff2c54170617ee0076767ac844705",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/gitlab/GitLabOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "7e53550f0185b6ec094fd96f437d4ad41554b542",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/lemon/LemonLDAPOAuthService.java",
      "new_id": "723d2806e0d823f87a54bec617cf91938302e9bd",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/lemon/LemonLDAPOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "1efd6a8f18f855c1c257bc1beb7a7751cbb49f30",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/phabricator/PhabricatorOAuthService.java",
      "new_id": "5c7e6ff122ff61446846ae10fa040485f74b55dc",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/phabricator/PhabricatorOAuthService.java"
    },
    {
      "type": "modify",
      "old_id": "6bbb7ea65705593a9a25f57852a86a206395f02e",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/tuleap/TuleapOAuthService.java",
      "new_id": "dca9d665cc7d3e0b29d1cb4a23c7837d863df842",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/tuleap/TuleapOAuthService.java"
    }
  ]
}
