Skip to content

Commit

Permalink
[FIX] LinkedIn OAuth login (#14887)
Browse files Browse the repository at this point in the history
  • Loading branch information
engelgabriel authored and sampaiodiego committed Jun 28, 2019
1 parent 24ebd2c commit c229a07
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ oauth2@1.2.1
observe-sequence@1.0.16
ordered-dict@1.1.0
ostrio:cookies@2.3.0
pauli:accounts-linkedin@2.1.5
pauli:linkedin-oauth@1.2.0
pauli:accounts-linkedin@5.0.0
pauli:linkedin-oauth@5.0.0
promise@0.11.2
raix:eventemitter@0.1.3
raix:eventstate@0.0.4
Expand Down
7 changes: 7 additions & 0 deletions app/lib/server/startup/oAuthServicesUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ function _OAuthServicesUpdate() {
data.consumerKey = data.clientId;
delete data.clientId;
}

if (serviceName === 'Linkedin') {
data.clientConfig = {
requestPermissions: ['r_liteprofile', 'r_emailaddress'],
};
}

ServiceConfiguration.configurations.upsert({
service: serviceName.toLowerCase(),
}, {
Expand Down
2 changes: 1 addition & 1 deletion app/ui-login/client/login/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Template.loginServices.helpers({

const longinMethods = {
'meteor-developer': 'MeteorDeveloperAccount',
linkedin: 'LinkedIn',
linkedin: 'Linkedin',
};

Template.loginServices.events({
Expand Down

0 comments on commit c229a07

Please sign in to comment.