[FIX] Linkedin OAuth login (#1913)
This commit is contained in:
parent
975a038254
commit
7daa3092c7
|
@ -226,7 +226,7 @@ class LoginSignupView extends React.Component {
|
||||||
const { clientId } = services.linkedin;
|
const { clientId } = services.linkedin;
|
||||||
const endpoint = 'https://www.linkedin.com/uas/oauth2/authorization';
|
const endpoint = 'https://www.linkedin.com/uas/oauth2/authorization';
|
||||||
const redirect_uri = `${ server }/_oauth/linkedin?close`;
|
const redirect_uri = `${ server }/_oauth/linkedin?close`;
|
||||||
const scope = 'r_emailaddress';
|
const scope = 'r_liteprofile,r_emailaddress';
|
||||||
const state = this.getOAuthState();
|
const state = this.getOAuthState();
|
||||||
const params = `?client_id=${ clientId }&redirect_uri=${ redirect_uri }&scope=${ scope }&state=${ state }&response_type=code`;
|
const params = `?client_id=${ clientId }&redirect_uri=${ redirect_uri }&scope=${ scope }&state=${ state }&response_type=code`;
|
||||||
this.openOAuth({ url: `${ endpoint }${ params }` });
|
this.openOAuth({ url: `${ endpoint }${ params }` });
|
||||||
|
|
Loading…
Reference in New Issue