diff --git a/CHANGES b/CHANGES index a46f77d8b..1faf8d005 100644 --- a/CHANGES +++ b/CHANGES @@ -1916,4 +1916,5 @@ * acme: request ECC certs * less-strict DKIM check to allow users to set a stronger DKIM key * Add members only flag to mailing list +* oauth: add backward compat layer for backup and uninstall diff --git a/src/addons.js b/src/addons.js index 827228c83..4d33f6300 100644 --- a/src/addons.js +++ b/src/addons.js @@ -146,6 +146,13 @@ var KNOWN_ADDONS = { backup: NOOP, restore: NOOP, clear: NOOP, + }, + oauth: { // kept for backward compatibility. keep teardown for uninstall to work + setup: NOOP, + teardown: teardownOauth, + backup: NOOP, + restore: NOOP, + clear: NOOP, } }; @@ -1869,3 +1876,13 @@ function statusGraphite(callback) { }); }); } + +function teardownOauth(app, options, callback) { + assert.strictEqual(typeof app, 'object'); + assert.strictEqual(typeof options, 'object'); + assert.strictEqual(typeof callback, 'function'); + + debugApp(app, 'teardownOauth'); + + appdb.unsetAddonConfig(app.id, 'oauth', callback); +}