TZM / tzm-blade

ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
www.zmgc.net
GNU General Public License v3.0
4 stars 8 forks source link

req.session._csrf is deprecated, use req.csrfToken() instead #48

Closed nkhine closed 10 years ago

nkhine commented 10 years ago

i get this warnings in the logs

2014-02-04T21:25:16.965055+00:00 app[web.1]: req.session._csrf is deprecated, use req.csrfToken() instead
2014-02-04T21:25:17.199840+00:00 heroku[router]: at=info method=GET path=/social/linkedincallback?oauth_token=75--97756eda-142e-42e6-8323-48046e966226&oauth_verifier=43967 host=serene-depths-3284.herokuapp.com request_id=f694498b-0759-41eb-b2df-8e283e686649 fwd="188.29.125.185" dyno=web.1 connect=2ms service=250ms status=500 bytes=21
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at /app/app/config/routes.coffee:23:9
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at Passport.authenticate (/app/node_modules/passport/lib/passport/middleware/authenticate.js:244:7)
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at attempt (/app/node_modules/passport/lib/passport/middleware/authenticate.js:243:16)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at param (/app/node_modules/express/lib/router/index.js:135:11)
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at Strategy.authenticate (/app/node_modules/passport-linkedin/lib/passport-linkedin/strategy.js:118:40)
2014-02-04T21:25:17.196159+00:00 app[web.1]: Error: failed to find request token in session
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at Strategy.OAuthStrategy.authenticate (/app/node_modules/passport-linkedin/node_modules/passport-oauth/lib/passport-oauth/strategies/oauth.js:124:54)
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at callbacks (/app/node_modules/express/lib/router/index.js:164:37)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at Router._dispatch (/app/node_modules/express/lib/router/index.js:173:5)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at pass (/app/node_modules/express/lib/router/index.js:145:5)
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at param (/app/node_modules/express/lib/router/index.js:138:11)
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at Object.Route.linkedincallback (/app/app/controllers/social.coffee:126:13)
2014-02-04T21:25:17.196159+00:00 app[web.1]:   at routeMvc (/app/app/config/routes.coffee:60:9)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at next (/app/node_modules/express/node_modules/connect/lib/proto.js:193:15)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at param (/app/node_modules/express/lib/router/index.js:135:11)
2014-02-04T21:25:17.196405+00:00 app[web.1]:
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at Object.router (/app/node_modules/express/lib/router/index.js:33:10)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at Object.oncomplete (fs.js:107:15)
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at fs.js:266:14
2014-02-04T21:25:17.198844+00:00 app[web.1]: GET /social/linkedincallback?oauth_token=75--97756eda-142e-42e6-8323-48046e966226&oauth_verifier=43967 500 241ms - 21b
2014-02-04T21:25:17.196405+00:00 app[web.1]:   at /app/app/config/apps.coffee:184:17
nkhine commented 10 years ago

fixed