From 77865b5966629acdbac5a3aa7bc6ecd7ab58589b Mon Sep 17 00:00:00 2001 From: Tom Kersten Date: Tue, 10 Oct 2017 12:49:13 -0500 Subject: [PATCH] fix(protocols): previous OAuth2 config parameter rename broke functionality This restores the previous config parameter name of `client_id` for OAuth2 providers (e.g. google). [closes #368] --- protocols/OAuth2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/OAuth2.js b/protocols/OAuth2.js index f4cd7589..b794e3e9 100644 --- a/protocols/OAuth2.js +++ b/protocols/OAuth2.js @@ -127,7 +127,7 @@ function authorizationRequest (req, options) { var config = this.client var url = URL.parse(endpoints.authorize.url) var responseType = 'code' - var clientId = config.clientId + var clientId = config.client_id var redirectUri = provider.redirect_uri var state = options.state