Skip to content

Commit c229a07

Browse files
engelgabrielsampaiodiego
authored andcommitted
[FIX] LinkedIn OAuth login (#14887)
1 parent 24ebd2c commit c229a07

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.meteor/versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ oauth2@1.2.1
112112
observe-sequence@1.0.16
113113
ordered-dict@1.1.0
114114
ostrio:cookies@2.3.0
115-
pauli:accounts-linkedin@2.1.5
116-
pauli:linkedin-oauth@1.2.0
115+
pauli:accounts-linkedin@5.0.0
116+
pauli:linkedin-oauth@5.0.0
117117
promise@0.11.2
118118
raix:eventemitter@0.1.3
119119
raix:eventstate@0.0.4

app/lib/server/startup/oAuthServicesUpdate.js

+7
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ function _OAuthServicesUpdate() {
7878
data.consumerKey = data.clientId;
7979
delete data.clientId;
8080
}
81+
82+
if (serviceName === 'Linkedin') {
83+
data.clientConfig = {
84+
requestPermissions: ['r_liteprofile', 'r_emailaddress'],
85+
};
86+
}
87+
8188
ServiceConfiguration.configurations.upsert({
8289
service: serviceName.toLowerCase(),
8390
}, {

app/ui-login/client/login/services.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Template.loginServices.helpers({
6464

6565
const longinMethods = {
6666
'meteor-developer': 'MeteorDeveloperAccount',
67-
linkedin: 'LinkedIn',
67+
linkedin: 'Linkedin',
6868
};
6969

7070
Template.loginServices.events({

0 commit comments

Comments
 (0)