fix linkedin/google should be oath2

fix should be authOptions not oAuthOptions
fix should be LINKEDIN_STATE not LINKED_STATE
This commit is contained in:
Berkeley Martinez
2015-06-17 21:43:22 -07:00
parent caacee7959
commit c56c8fb310

View File

@ -41,6 +41,7 @@ module.exports = {
},
'google-login': {
provider: 'google',
authScheme: 'oauth2',
module: 'passport-google-oauth2',
clientID: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_SECRET,
@ -54,6 +55,7 @@ module.exports = {
},
'google-link': {
provider: 'google',
authScheme: 'oauth2',
module: 'passport-google-oauth2',
clientID: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_SECRET,
@ -94,7 +96,7 @@ module.exports = {
},
'linkedin-login': {
provider: 'linkedin',
authScheme: 'oauth',
authScheme: 'oauth2',
module: 'passport-linkedin-oauth2',
authPath: '/auth/linkedin',
callbackURL: '/auth/linkedin/callback',
@ -104,14 +106,14 @@ module.exports = {
clientID: process.env.LINKEDIN_ID,
clientSecret: process.env.LINKEDIN_SECRET,
scope: ['r_fullprofile', 'r_emailaddress'],
oAuthOptions: {
state: process.env.LINKED_STATE
authOptions: {
state: process.env.LINKEDIN_STATE
},
failureFlash: true
},
'linkedin-link': {
provider: 'linkedin',
authScheme: 'oauth',
authScheme: 'oauth2',
module: 'passport-linkedin-oauth2',
authPath: '/link/linkedin',
callbackURL: '/link/linkedin/callback',
@ -122,7 +124,7 @@ module.exports = {
clientSecret: process.env.LINKEDIN_SECRET,
scope: ['r_fullprofile', 'r_emailaddress'],
authOptions: {
state: process.env.LINKED_STATE
state: process.env.LINKEDIN_STATE
},
failureFlash: true
}