)]}'
{
  "commit": "a175500df1b206f6736f99f7994f49f95af9f638",
  "tree": "6f0dfdc6b465f41313320f9862005fda05139023",
  "parents": [
    "d946a36c162a6d746ecbcad0769043761454e389"
  ],
  "author": {
    "name": "Thomas Dräbing",
    "email": "thomas.draebing@sap.com",
    "time": "Wed Apr 23 16:14:32 2025 +0200"
  },
  "committer": {
    "name": "Thomas Dräbing",
    "email": "thomas.draebing@sap.com",
    "time": "Tue Sep 30 11:24:42 2025 +0200"
  },
  "message": "Set OAuth external ID on CreateAccount call\n\nTo create an account you either have to login via the UI or an admin has to\ncreate it via REST API. The former worked without issue, since OAuth is\ndirectly involved in account creation, i.e. the data returned by the\nidentity provider is being used to set up the account. However, it was not\npossible to create an account via REST API and then log into it via OAuth.\nThe reason was that the account created via REST API didn\u0027t get an external\nID on creation that linked it to the IDP. On authentication Gerrit would\nthus complain that the account exists and that the provided secret didn\u0027t\nmatch the stored password instead of contacting the OAuth server.\n\nGerrit provides an extension point where plugins can provide additional\nexternal IDs on account creation. This extension point is being implemented\nby this change.\n\nChange-Id: Ie643503f4e1c2247afd1674036aeaf3b33ca7665\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "683602d463c1a87587795f01e8706e2c7e2ee2e7",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/Module.java",
      "new_id": "0d3ed1d678dcd4ca32abf08758bbd1d77512c1c3",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/Module.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b69025854b376225bf904adc53770886c8dd47c9",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/oauth/OAuthExternalIdCreator.java"
    }
  ]
}
