Dynamically detect oauth proxy needs in apptask

This commit is contained in:
Johannes Zellner
2016-02-19 16:18:47 +01:00
parent cdce6e605d
commit dd18f9741a
+1 -1
View File
@@ -163,7 +163,7 @@ function allocateOAuthProxyCredentials(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
if (!app.oauthProxy) return callback(null);
if (!apps.requiresOAuthProxy(app)) return callback(null);
var id = 'cid-' + uuid.v4();
var clientSecret = hat(256);