From 97a62594ed54500bb71788005e69227ba5c47287 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 9 Jul 2021 16:21:42 +0100 Subject: [PATCH] Update clientId -> clientID --- packages/auth/src/middleware/passport/oidc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/auth/src/middleware/passport/oidc.js b/packages/auth/src/middleware/passport/oidc.js index a1e3039121..b636abbf09 100644 --- a/packages/auth/src/middleware/passport/oidc.js +++ b/packages/auth/src/middleware/passport/oidc.js @@ -84,9 +84,9 @@ function validEmail(value) { */ exports.strategyFactory = async function (config, callbackUrl) { try { - const { clientId, clientSecret, configUrl } = config + const { clientID, clientSecret, configUrl } = config - if (!clientId || !clientSecret || !callbackUrl || !configUrl) { + if (!clientID || !clientSecret || !callbackUrl || !configUrl) { throw new Error( "Configuration invalid. Must contain clientID, clientSecret, callbackUrl and configUrl" ) @@ -108,7 +108,7 @@ exports.strategyFactory = async function (config, callbackUrl) { authorizationURL: body.authorization_endpoint, tokenURL: body.token_endpoint, userInfoURL: body.userinfo_endpoint, - clientID: clientId, + clientID: clientID, clientSecret: clientSecret, callbackURL: callbackUrl, },