Simply check app.oauthProxy

Part of #6
This commit is contained in:
Girish Ramakrishnan
2016-09-07 00:31:25 -07:00
parent 452c976aa6
commit 5014ca7742
3 changed files with 4 additions and 16 deletions

View File

@@ -159,7 +159,7 @@ function allocateOAuthProxyCredentials(app, callback) {
assert.strictEqual(typeof app, 'object');
assert.strictEqual(typeof callback, 'function');
if (!nginx.requiresOAuthProxy(app)) return callback(null);
if (!app.oauthProxy) return callback(null);
debugApp(app, 'Creating oauth proxy credentials');