Linkedin Callback Issue
NumberChiffre opened this issue · comments
Hello Everyone,
I am trying to authenticate linkedin but I ran into an issue after the login popup:
Cannot GET /auth/linkedin/callback?code=AQRIx85ZlniIZwUPUZDNHl8XuXwxtY_Y5x0SDLSYQLqEaAp-s4SeQxkDbW9O4FT2GQiacdHITFO_kay5ZKepS4cy2YfSju9PlEfp6VKsf87jwTxYjwM&state=RoTe20G5HHEiSdG0Hk5Cldbw
I figure it would be a problem somewhere in the routes.js file, here are the codes related to the linkedin authentication posted below.
I thank you in advance for helping me, this is the first time I post an issue!
Sincerely,
Terence
// linkedin ---------------------------------
// send to linkedin to do the authentication
app.get('/auth/linkedin', passport.authenticate('linkedin', { scope: [ 'r_emailaddress', 'r_basicprofile']}));
// handle the callback after linkedin has authenticated the user
app.get('auth/linkedin/callback',
passport.authenticate('linkedin', {
successRedirect : '/profile',
failureRedirect : '/'
}));
// Linkedin ---------------------------------
// send to linkedin to do the authentication
app.get('/connect/linkedin', passport.authorize('linkedin' , { scope: [ 'r_emailaddress', 'r_basicprofile']}));
// handle the callback after linkedin has authorized the user
app.get('connect/linkedin/callback',
passport.authorize('linkedin', {
successRedirect : '/profile',
failureRedirect : '/'
}));
`