From 7daa3092c7d031b5bab04eedae333e23bae9d96d Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 20 Mar 2020 23:11:13 -0300 Subject: [PATCH] [FIX] Linkedin OAuth login (#1913) --- app/views/LoginSignupView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/LoginSignupView.js b/app/views/LoginSignupView.js index d3c5bb288..f27fcf879 100644 --- a/app/views/LoginSignupView.js +++ b/app/views/LoginSignupView.js @@ -226,7 +226,7 @@ class LoginSignupView extends React.Component { const { clientId } = services.linkedin; const endpoint = 'https://www.linkedin.com/uas/oauth2/authorization'; const redirect_uri = `${ server }/_oauth/linkedin?close`; - const scope = 'r_emailaddress'; + const scope = 'r_liteprofile,r_emailaddress'; const state = this.getOAuthState(); const params = `?client_id=${ clientId }&redirect_uri=${ redirect_uri }&scope=${ scope }&state=${ state }&response_type=code`; this.openOAuth({ url: `${ endpoint }${ params }` });