Closed calvertyang closed 10 years ago
how can i update sail.js above library
i got error in twiiter login after updating my date
error: Error: Failed to find request token in session
at Strategy.OAuthStrategy.authenticate (/var/www/html/sailsSocialAuth-master/node_modules/passport-oauth1/lib/strategy.js:142:54)
at Strategy.authenticate (/var/www/html/sailsSocialAuth-master/node_modules/passport-twitter/lib/strategy.js:85:40)
at attempt (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/middleware/authenticate.js:243:16)
at Passport.authenticate (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/middleware/authenticate.js:244:7)
at AuthController.twitter (/var/www/html/sailsSocialAuth-master/api/controllers/AuthController.js:154:15)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:135:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at alwaysAllow (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/policies/index.js:201:6)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:135:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at wrapperFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/controllers/index.js:293:4)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:135:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/i18n/index.js:27:13
at Object.i18nInit as init
at routes.before./* (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/i18n/index.js:25:16)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at routes.before./* (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/csrf/index.js:35:6)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at _addResViewMethod (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/views/index.js:337:3)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at addSugarMethods (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/request/index.js:68:6)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at nextRoute (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:100:7)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:167:11)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/connect-flash/lib/flash.js:21:5
at supportFlashMsgs (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/hooks/request/index.js:45:32)
at _bind.enhancedFn (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/router/bind.js:375:4)
at callbacks (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:164:37)
at param (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:138:11)
at pass (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:173:5)
at Object.router (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/lib/router/index.js:33:10)
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.handle (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/express/index.js:168:4)
at Context.next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Context.actions.pass (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/context/http/actions.js:77:8)
at SessionStrategy.authenticate (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/strategies/session.js:67:10)
at attempt (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/middleware/authenticate.js:243:16)
at Passport.authenticate (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/middleware/authenticate.js:244:7)
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Passport.initialize (/var/www/html/sailsSocialAuth-master/node_modules/passport/lib/passport/middleware/initialize.js:69:5)
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at Object.methodOverride as handle
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/lib/express/bodyParserRetry.js:46:4
at multipart (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/multipart.js:85:37)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:57:9
at urlencoded (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js:49:37)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:55:7
at json (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/json.js:43:37)
at bodyParser (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:53:5)
at Object.retryBodyParser as handle
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:192:9)
at multipart (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/multipart.js:85:37)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:57:9
at urlencoded (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js:49:37)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:55:7
at json (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/json.js:43:37)
at bodyParser (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:53:5)
at Object.handle (/var/www/html/sailsSocialAuth-master/node_modules/sails/lib/express/index.js:118:12)
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/proto.js:190:15)
at next (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/session.js:312:9)
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/express/node_modules/connect/lib/middleware/session.js:336:9
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/connect-mongo/lib/connect-mongo.js:192:17
at /var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/collection.js:1010:5
at Cursor.nextObject (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/cursor.js:653:5)
at commandHandler (/var/www/html/sailsSocialAuth-master/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/cursor.js:635:14)
at null.
This pull request has some issue, you can try to use another pull request(#14).
But I don't test login via twitter.
Hi!!!!
can u please why email address not coming from all api ???
await for yr reply..
Regards, Jignesh Pansuria
On Wed, Jan 8, 2014 at 6:43 AM, Calvert notifications@github.com wrote:
Closed #13https://github.com/stefanbuck/sails-social-auth-example/pull/13 .
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13 .
Hi @jigneshnavsoft,
You mean when log in to web application via Twitter, can't get user's email? If yes, email addresses are not provided by Twitter API.
H!!!
thanks for help..
i need facebook and google plus and twiitee email address ..
how can i get or any other alternative???
await for yr reply..
Regards, Jignesh
On Thu, Jan 9, 2014 at 1:01 AM, Calvert notifications@github.com wrote:
Hi @jigneshnavsoft https://github.com/jigneshnavsoft,
You mean when log in to web application via Twitter, can't get user's email? If yes, email addresses are not provided by Twitter API.
FYR: twitter oauth after connect GET Primary email addresshttps://dev.twitter.com/discussions/15589
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31893360 .
Hi @jigneshnavsoft
@stefanbuck has been add access email, first name and last name to example.
You can take a look at api/controllers/AuthController.js
facebook: function (req, res) { passport.authenticate('facebook', { failureRedirect: '/login', scope: ['email'] },
return console.log(email)* function (err, user) { req.logIn(user, function (err) { if (err) { console.log(err); res.view('500'); return; }
res.redirect('/');
return;
});
}
)(req, res);
},
i am getting error not email address
On Thu, Jan 9, 2014 at 7:12 AM, Calvert notifications@github.com wrote:
Hi @jigneshnavsoft https://github.com/jigneshnavsoft
@stefanbuck https://github.com/stefanbuck has been add access email, first name and last name to example.
You can take a look at api/controllers/AuthController.js
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31907468 .
pl help me i am waiting for yr reply..
On Thu, Jan 9, 2014 at 8:52 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
facebook: function (req, res) { passport.authenticate('facebook', { failureRedirect: '/login', scope: ['email'] },
return console.log(email)* function (err, user) { req.logIn(user, function (err) { if (err) { console.log(err); res.view('500'); return; }
res.redirect('/'); return; }); } )(req, res);
},
i am getting error not email address
On Thu, Jan 9, 2014 at 7:12 AM, Calvert notifications@github.com wrote:
Hi @jigneshnavsoft https://github.com/jigneshnavsoft
@stefanbuck https://github.com/stefanbuck has been add access email, first name and last name to example.
You can take a look at api/controllers/AuthController.js
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31907468 .
pl. give me node_modules folder i am not getting email ..
On Thu, Jan 9, 2014 at 9:47 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
pl help me i am waiting for yr reply..
On Thu, Jan 9, 2014 at 8:52 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
facebook: function (req, res) { passport.authenticate('facebook', { failureRedirect: '/login', scope: ['email'] },
return console.log(email)* function (err, user) { req.logIn(user, function (err) { if (err) { console.log(err); res.view('500'); return; }
res.redirect('/'); return; }); } )(req, res);
},
i am getting error not email address
On Thu, Jan 9, 2014 at 7:12 AM, Calvert notifications@github.com wrote:
Hi @jigneshnavsoft https://github.com/jigneshnavsoft
@stefanbuck https://github.com/stefanbuck has been add access email, first name and last name to example.
You can take a look at api/controllers/AuthController.js
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31907468 .
node_modules folder will auto generated after you run npm install
command.
yes that's fine ...
but still i am not getting email in facebook
On Thu, Jan 9, 2014 at 12:03 PM, Calvert notifications@github.com wrote:
node_modules folder will auto generated after you run npm install command.
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31924448 .
i am getting undefined emails in views part ...
On Thu, Jan 9, 2014 at 7:50 PM, Jignesh Jigs ec.jignesh@gmail.com wrote:
yes that's fine ...
but still i am not getting email in facebook
On Thu, Jan 9, 2014 at 12:03 PM, Calvert notifications@github.com wrote:
node_modules folder will auto generated after you run npm installcommand.
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31924448 .
Please use the following code in api/controller/AuthController.js
.
Dump user variable to see whether get email address or not.
Email address should be included in user
variable, you can't direct use email
variable.
facebook: function (req, res) {
passport.authenticate('facebook', { failureRedirect: '/login', scope: ['email'] },
function (err, user) {
console.dir(user);
req.logIn(user, function (err) {
if (err) {
console.log(err);
res.view('500');
return;
}
res.redirect('/');
return;
});
})(req, res);
},
i got email address from profile in controller but how can i access in view..
that email address comes in emails :{'value':xyz@gmail.com} i am not getting this in views ..
pl. help me
On Fri, Jan 10, 2014 at 6:35 AM, Calvert notifications@github.com wrote:
Please use the following code in api/controller/AuthController.js. Dump user variable to see whether get email address or not.
Email address should be included in user variable, you can't direct use email variable.
facebook: function (req, res) { passport.authenticate(' facebook', { failureRedirect: '/login', scope: ['email'] }, function (err, user) { console.dir(user); req.logIn(user, function (err) { if (err) { console.log(err); res.view('500'); return; }
res.redirect('/'); return; }); })(req, res);
},
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31994286 .
When the login operation completes, user
will be assigned to req.user
.
FYR: Passport | Log In
i got this array
{ id: '100003244828800', username: 'chets.dev', displayName: 'Chets Dev', name: { familyName: 'Dev', givenName: 'Chets', middleName: undefined }, gender: 'female', profileUrl: 'https://www.facebook.com/chets.dev', emails: [ { value: 'chets.dev@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100003244828800","name":"Chets Dev","first_name":"Chets","last_name":"Dev","link":"https:\/\/ www.facebook.com \/chets.dev","birthday":"01\/01\/1999","gender":"female","email":"chets.dev\ u0040gmail.com ","timezone":5.5,"locale":"en_GB","verified":true,"updated_time":"2014-01-06T11:59:07+0000","username":"chets.dev"}', _json: { id: '100003244828800', name: 'Chets Dev', first_name: 'Chets', last_name: 'Dev', link: 'https://www.facebook.com/chets.dev', birthday: '01/01/1999', gender: 'female', email: 'chets.dev@gmail.com', timezone: 5.5, locale: 'en_GB', verified: true, updated_time: '2014-01-06T11:59:07+0000', username: 'chets.dev' } }
i want emails or email in my view part..
i attach screenshot..
pl. have a look screenshot in that i want to print email after User Models
pl. help me..
await for yr reply..
On Fri, Jan 10, 2014 at 2:26 AM, Calvert notifications@github.com wrote:
When the login operation completes, user will be assigned to req.user.
FYR: Passport | Log In http://passportjs.org/guide/login/
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31997830 .
http://passportjs.org/guide/profile/
from this emails field getting array what to write for view to diaplay email field
On Fri, Jan 10, 2014 at 4:53 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
i got this array
{ id: '100003244828800', username: 'chets.dev', displayName: 'Chets Dev', name: { familyName: 'Dev', givenName: 'Chets', middleName: undefined }, gender: 'female', profileUrl: 'https://www.facebook.com/chets.dev', emails: [ { value: 'chets.dev@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100003244828800","name":"Chets Dev","first_name":"Chets","last_name":"Dev","link":"https:\/\/ www.facebook.com \/chets.dev","birthday":"01\/01\/1999","gender":"female","email":"chets.dev\ u0040gmail.com ","timezone":5.5,"locale":"en_GB","verified":true,"updated_time":"2014-01-06T11:59:07+0000","username":"chets.dev"}', _json: { id: '100003244828800', name: 'Chets Dev', first_name: 'Chets', last_name: 'Dev', link: 'https://www.facebook.com/chets.dev', birthday: '01/01/1999', gender: 'female', email: 'chets.dev@gmail.com', timezone: 5.5, locale: 'en_GB', verified: true, updated_time: '2014-01-06T11:59:07+0000', username: 'chets.dev' } }
i want emails or email in my view part..
i attach screenshot..
pl. have a look screenshot in that i want to print email after User Models
pl. help me..
await for yr reply..
On Fri, Jan 10, 2014 at 2:26 AM, Calvert notifications@github.com wrote:
When the login operation completes, user will be assigned to req.user.
FYR: Passport | Log In http://passportjs.org/guide/login/
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31997830 .
i wanted to know from which function we are entering facebook data into monogdb
On Fri, Jan 10, 2014 at 4:57 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
http://passportjs.org/guide/profile/
from this emails field getting array what to write for view to diaplay email field
On Fri, Jan 10, 2014 at 4:53 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i got this array
{ id: '100003244828800', username: 'chets.dev', displayName: 'Chets Dev', name: { familyName: 'Dev', givenName: 'Chets', middleName: undefined }, gender: 'female', profileUrl: 'https://www.facebook.com/chets.dev', emails: [ { value: 'chets.dev@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100003244828800","name":"Chets Dev","first_name":"Chets","last_name":"Dev","link":"https:\/\/ www.facebook.com \/chets.dev","birthday":"01\/01\/1999","gender":"female","email":"chets.dev\ u0040gmail.com ","timezone":5.5,"locale":"en_GB","verified":true,"updated_time":"2014-01-06T11:59:07+0000","username":"chets.dev"}', _json: { id: '100003244828800', name: 'Chets Dev', first_name: 'Chets', last_name: 'Dev', link: 'https://www.facebook.com/chets.dev', birthday: '01/01/1999', gender: 'female', email: 'chets.dev@gmail.com', timezone: 5.5, locale: 'en_GB', verified: true, updated_time: '2014-01-06T11:59:07+0000', username: 'chets.dev' } }
i want emails or email in my view part..
i attach screenshot..
pl. have a look screenshot in that i want to print email after User Models
pl. help me..
await for yr reply..
On Fri, Jan 10, 2014 at 2:26 AM, Calvert notifications@github.comwrote:
When the login operation completes, user will be assigned to req.user.
FYR: Passport | Log In http://passportjs.org/guide/login/
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31997830 .
i have created merchant model where do i need change so that i can enter my data into this merchant collection..
this function is not getting call
var verifyHandler = function (token, tokenSecret, profile, done) {
// return console.log(profile);
process.nextTick(function () {
User11.findOne(
{
or : [
{uid: parseInt(profile.id)},
{uid: profile.id}
]
}
).done(function (err, user) {
if (user) {
return done(null, user);
} else {
User11.create({
provider: profile.provider,
uid: profile.id,
name: profile.displayName
}).done(function (err, user) {
return done(err, user);
});
}
});
});
};
for entering data from api response to mongodb database
On Fri, Jan 10, 2014 at 5:03 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
i wanted to know from which function we are entering facebook data into monogdb
On Fri, Jan 10, 2014 at 4:57 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
http://passportjs.org/guide/profile/
from this emails field getting array what to write for view to diaplay email field
On Fri, Jan 10, 2014 at 4:53 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i got this array
{ id: '100003244828800', username: 'chets.dev', displayName: 'Chets Dev', name: { familyName: 'Dev', givenName: 'Chets', middleName: undefined }, gender: 'female', profileUrl: 'https://www.facebook.com/chets.dev', emails: [ { value: 'chets.dev@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100003244828800","name":"Chets Dev","first_name":"Chets","last_name":"Dev","link":"https:\/\/ www.facebook.com \/chets.dev","birthday":"01\/01\/1999","gender":"female","email":"chets.dev\ u0040gmail.com ","timezone":5.5,"locale":"en_GB","verified":true,"updated_time":"2014-01-06T11:59:07+0000","username":"chets.dev"}', _json: { id: '100003244828800', name: 'Chets Dev', first_name: 'Chets', last_name: 'Dev', link: 'https://www.facebook.com/chets.dev', birthday: '01/01/1999', gender: 'female', email: 'chets.dev@gmail.com', timezone: 5.5, locale: 'en_GB', verified: true, updated_time: '2014-01-06T11:59:07+0000', username: 'chets.dev' } }
i want emails or email in my view part..
i attach screenshot..
pl. have a look screenshot in that i want to print email after User Models
pl. help me..
await for yr reply..
On Fri, Jan 10, 2014 at 2:26 AM, Calvert notifications@github.comwrote:
When the login operation completes, user will be assigned to req.user.
FYR: Passport | Log In http://passportjs.org/guide/login/
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31997830 .
hello ,
pl. re me ...
On Fri, Jan 10, 2014 at 5:12 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
i have created merchant model where do i need change so that i can enter my data into this merchant collection..
this function is not getting call
var verifyHandler = function (token, tokenSecret, profile, done) {
// return console.log(profile);
process.nextTick(function () { User11.findOne( { or : [ {uid: parseInt(profile.id)}, {uid: profile.id} ] } ).done(function (err, user) { if (user) { return done(null, user); } else { User11.create({ provider: profile.provider, uid: profile.id, name: profile.displayName }).done(function (err, user) { return done(err, user); }); } }); });
};
for entering data from api response to mongodb database
On Fri, Jan 10, 2014 at 5:03 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i wanted to know from which function we are entering facebook data into monogdb
On Fri, Jan 10, 2014 at 4:57 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
http://passportjs.org/guide/profile/
from this emails field getting array what to write for view to diaplay email field
On Fri, Jan 10, 2014 at 4:53 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i got this array
{ id: '100003244828800', username: 'chets.dev', displayName: 'Chets Dev', name: { familyName: 'Dev', givenName: 'Chets', middleName: undefined }, gender: 'female', profileUrl: 'https://www.facebook.com/chets.dev', emails: [ { value: 'chets.dev@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100003244828800","name":"Chets Dev","first_name":"Chets","last_name":"Dev","link":"https:\/\/ www.facebook.com \/chets.dev","birthday":"01\/01\/1999","gender":"female","email":"chets.dev\ u0040gmail.com ","timezone":5.5,"locale":"en_GB","verified":true,"updated_time":"2014-01-06T11:59:07+0000","username":"chets.dev"}', _json: { id: '100003244828800', name: 'Chets Dev', first_name: 'Chets', last_name: 'Dev', link: 'https://www.facebook.com/chets.dev', birthday: '01/01/1999', gender: 'female', email: 'chets.dev@gmail.com', timezone: 5.5, locale: 'en_GB', verified: true, updated_time: '2014-01-06T11:59:07+0000', username: 'chets.dev' } }
i want emails or email in my view part..
i attach screenshot..
pl. have a look screenshot in that i want to print email after User Models
pl. help me..
await for yr reply..
On Fri, Jan 10, 2014 at 2:26 AM, Calvert notifications@github.comwrote:
When the login operation completes, user will be assigned to req.user.
FYR: Passport | Log In http://passportjs.org/guide/login/
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31997830 .
[root@Nav16 tablemaster]# sails lift
/var/www/html/tablemaster/config/middleware.js:39
passport.serializeMerchant(function (merchant, done) {
^
TypeError: Object #
i want to use merchant model instead of user model
which chnage should i do ???
On Fri, Jan 10, 2014 at 6:51 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
hello ,
pl. re me ...
On Fri, Jan 10, 2014 at 5:12 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i have created merchant model where do i need change so that i can enter my data into this merchant collection..
this function is not getting call
var verifyHandler = function (token, tokenSecret, profile, done) {
// return console.log(profile);
process.nextTick(function () { User11.findOne( { or : [ {uid: parseInt(profile.id)}, {uid: profile.id} ] } ).done(function (err, user) { if (user) { return done(null, user); } else { User11.create({ provider: profile.provider, uid: profile.id, name: profile.displayName }).done(function (err, user) { return done(err, user); }); } }); });
};
for entering data from api response to mongodb database
On Fri, Jan 10, 2014 at 5:03 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i wanted to know from which function we are entering facebook data into monogdb
On Fri, Jan 10, 2014 at 4:57 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
http://passportjs.org/guide/profile/
from this emails field getting array what to write for view to diaplay email field
On Fri, Jan 10, 2014 at 4:53 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
i got this array
{ id: '100003244828800', username: 'chets.dev', displayName: 'Chets Dev', name: { familyName: 'Dev', givenName: 'Chets', middleName: undefined }, gender: 'female', profileUrl: 'https://www.facebook.com/chets.dev', emails: [ { value: 'chets.dev@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100003244828800","name":"Chets Dev","first_name":"Chets","last_name":"Dev","link":"https:\/\/ www.facebook.com \/chets.dev","birthday":"01\/01\/1999","gender":"female","email":"chets.dev\ u0040gmail.com ","timezone":5.5,"locale":"en_GB","verified":true,"updated_time":"2014-01-06T11:59:07+0000","username":"chets.dev"}', _json: { id: '100003244828800', name: 'Chets Dev', first_name: 'Chets', last_name: 'Dev', link: 'https://www.facebook.com/chets.dev', birthday: '01/01/1999', gender: 'female', email: 'chets.dev@gmail.com', timezone: 5.5, locale: 'en_GB', verified: true, updated_time: '2014-01-06T11:59:07+0000', username: 'chets.dev' } }
i want emails or email in my view part..
i attach screenshot..
pl. have a look screenshot in that i want to print email after User Models
pl. help me..
await for yr reply..
On Fri, Jan 10, 2014 at 2:26 AM, Calvert notifications@github.comwrote:
When the login operation completes, user will be assigned to req.user .
FYR: Passport | Log In http://passportjs.org/guide/login/
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-31997830 .
Hi @jigneshnavsoft
This pull request is about update npm modules. If you need help or have a question, please take a look at following link.
@jigneshnavsoft i recommend you to follow first some tutorials before you start to build an app which fits with your needs. Start slow and grow with your experience. @CalvertYang links are also a good point to start, thank's at this point for the support here :thumbsup:
thanks a lot ...
On Fri, Jan 10, 2014 at 8:23 AM, Stefan Buck notifications@github.comwrote:
@jigneshnavsoft https://github.com/jigneshnavsoft i recommend you to follow first some tutorials before you start to build an app which fits with your needs. Start simple and grow with your experience. @CalvertYanghttps://github.com/CalvertYanglinks are also a good point to start, thank's at this point for the support here [image: :thumbsup:]
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-32010260 .
{ id: '100002318586904', username: 'ecjignesh', displayName: 'Jignesh Pansuria', name: { familyName: 'Pansuria', givenName: 'Jignesh', middleName: undefined }, gender: 'male', profileUrl: 'https://www.facebook.com/ecjignesh', emails: [ { value: 'ec.jignesh@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100002318586904","name":"Jignesh Pansuria","first_name":"Jignesh","last_name":"Pansuria","link":"https:\/\/ www.facebook.com\/ecjignesh","hometown":{"id":"115440481803904","name":"Ahmedabad, India"},"location":{"id":"115440481803904","name":"Ahmedabad, India"},"bio":"hare krsna","education":[{"school":{"id":"109224312430774","name":"Nirma University of Science and Technology"},"year":{"id":"138383069535219","name":"2005"},"type":"College"}],"gender":"male","email":"ec.jignesh\ u0040gmail.com ","timezone":0,"locale":"en_US","languages":[{"id":"106059522759137","name":"English"},{"id":"106439496057976","name":"Gujarati"},{"id":"112969428713061","name":"Hindi"},{"id":"112630158748101","name":"Marathi"}],"verified":true,"updated_time":"2013-10-04T17:49:55+0000","username":"ecjignesh"}', _json: { id: '100002318586904', name: 'Jignesh Pansuria', first_name: 'Jignesh', last_name: 'Pansuria', link: 'https://www.facebook.com/ecjignesh', hometown: { id: '115440481803904', name: 'Ahmedabad, India' }, location: { id: '115440481803904', name: 'Ahmedabad, India' }, bio: 'hare krsna', education: [ [Object] ], gender: 'male', email: 'ec.jignesh@gmail.com', timezone: 0, locale: 'en_US', languages: [ [Object], [Object], [Object], [Object] ], verified: true, updated_time: '2013-10-04T17:49:55+0000', username: 'ecjignesh' } }
this is my array i want emails in view part how can i get ..
On Fri, Jan 10, 2014 at 9:11 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
thanks a lot ...
On Fri, Jan 10, 2014 at 8:23 AM, Stefan Buck notifications@github.comwrote:
@jigneshnavsoft https://github.com/jigneshnavsoft i recommend you to follow first some tutorials before you start to build an app which fits with your needs. Start simple and grow with your experience. @CalvertYanghttps://github.com/CalvertYanglinks are also a good point to start, thank's at this point for the support here [image: :thumbsup:]
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-32010260 .
Hi !! i want to convert emails: [ { value: 'ec.jignesh@gmail.com' } ], into string like emails:ec.jignesh@gmail.com
await for yr reply
On Fri, Jan 10, 2014 at 2:41 PM, Jignesh Jigs ec.jignesh@gmail.com wrote:
{ id: '100002318586904', username: 'ecjignesh', displayName: 'Jignesh Pansuria', name: { familyName: 'Pansuria', givenName: 'Jignesh', middleName: undefined }, gender: 'male', profileUrl: 'https://www.facebook.com/ecjignesh', emails: [ { value: 'ec.jignesh@gmail.com' } ], provider: 'facebook', _raw: '{"id":"100002318586904","name":"Jignesh Pansuria","first_name":"Jignesh","last_name":"Pansuria","link":"https:\/\/ www.facebook.com\/ecjignesh","hometown":{"id":"115440481803904","name":"Ahmedabad, India"},"location":{"id":"115440481803904","name":"Ahmedabad, India"},"bio":"hare krsna","education":[{"school":{"id":"109224312430774","name":"Nirma University of Science and Technology"},"year":{"id":"138383069535219","name":"2005"},"type":"College"}],"gender":"male","email":"ec.jignesh\ u0040gmail.com ","timezone":0,"locale":"en_US","languages":[{"id":"106059522759137","name":"English"},{"id":"106439496057976","name":"Gujarati"},{"id":"112969428713061","name":"Hindi"},{"id":"112630158748101","name":"Marathi"}],"verified":true,"updated_time":"2013-10-04T17:49:55+0000","username":"ecjignesh"}', _json: { id: '100002318586904', name: 'Jignesh Pansuria', first_name: 'Jignesh', last_name: 'Pansuria', link: 'https://www.facebook.com/ecjignesh', hometown: { id: '115440481803904', name: 'Ahmedabad, India' }, location: { id: '115440481803904', name: 'Ahmedabad, India' }, bio: 'hare krsna', education: [ [Object] ], gender: 'male', email: 'ec.jignesh@gmail.com', timezone: 0, locale: 'en_US', languages: [ [Object], [Object], [Object], [Object] ], verified: true, updated_time: '2013-10-04T17:49:55+0000', username: 'ecjignesh' } }
this is my array i want emails in view part how can i get ..
On Fri, Jan 10, 2014 at 9:11 AM, Jignesh Jigs ec.jignesh@gmail.comwrote:
thanks a lot ...
On Fri, Jan 10, 2014 at 8:23 AM, Stefan Buck notifications@github.comwrote:
@jigneshnavsoft https://github.com/jigneshnavsoft i recommend you to follow first some tutorials before you start to build an app which fits with your needs. Start simple and grow with your experience. @CalvertYang https://github.com/CalvertYang links are also a good point to start, thank's at this point for the support here [image: :thumbsup:]
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-32010260 .
Sorry @jigneshnavsoft , i can't help here anymore. Your questions have nothing to do with this example. I think you don't have so much experience with javascript and node.js, right? Please start with pure simple javascript or choose a technology which you can handle well.
I am working on live project but i never done such type of functionality like google + and facebook and twitter based login..
can u please provide me email address from twitter and google plus or use other API
Await for yr reply...
On Mon, Jan 13, 2014 at 9:26 PM, Stefan Buck notifications@github.comwrote:
Sorry @jigneshnavsoft https://github.com/jigneshnavsoft , i can't help here anymore. Your questions have nothing to do with this example. I think you don't have so much experience with javascript and node.js, right? Please start with pure simple javascript or choose a technology which you can handle well.
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-32213137 .
Hi !!!
pl.i am confused in getting email address from twitter and google plua api...
pl. help me i have lot of expectation from yr side..
await for yr reply..
On Wed, Jan 15, 2014 at 4:53 AM, Jignesh Jigs ec.jignesh@gmail.com wrote:
I am working on live project but i never done such type of functionality like google + and facebook and twitter based login..
can u please provide me email address from twitter and google plus or use other API
Await for yr reply...
On Mon, Jan 13, 2014 at 9:26 PM, Stefan Buck notifications@github.comwrote:
Sorry @jigneshnavsoft https://github.com/jigneshnavsoft , i can't help here anymore. Your questions have nothing to do with this example. I think you don't have so much experience with javascript and node.js, right? Please start with pure simple javascript or choose a technology which you can handle well.
— Reply to this email directly or view it on GitHubhttps://github.com/stefanbuck/sails-social-auth-example/pull/13#issuecomment-32213137 .