Comments (13)
I'm having the same issue - and a similar one with the facebook example.
from connect-auth.
Ditto.
from connect-auth.
Same here
from connect-auth.
Same here with GitHub auth. It still works but the server eventually locks up.
from connect-auth.
i think your supposed to use res.end not res.send...
from connect-auth.
res.end worked.
from connect-auth.
I'm getting this with res.render but not with res.end
from connect-auth.
Implemented in 0.3.0
from connect-auth.
Haven't tested, but thank you.
from connect-auth.
I'm still having this issue as of 0.3.1
from connect-auth.
Which strategy.. I'm investigating an issue with the google strategy (google seem not to end their connections to json feeds anymore?) ... can you point me at your code at all ?
from connect-auth.
The facebook strategy ... I'm not sure if I'm supposed to be trying to redirect in there and whether or not that's what is causing it ...
app.get('/auth/facebook',function(req,res){
req.authenticate(['facebook'], function(error, authenticated) {
res.redirect('/');
});
});
After thinking more about it ... what is likely going on here is that authenticate is sending the headers and I'm trying to add on to them with the redirect ... what is the suggested way to redirect after authenticating?
I ended up replacing it with a javascript redirect.
from connect-auth.
Ok. So presumably you want to call into loadAccount when a session first successfully authenticates?
The best place to do this is over in your express/connect app or in some middleware... I'd like connect-auth to track first-authenticate and logout as a set of callbacks/events .. but as this doesn't currently exist you just need to do it yourself ...
have you seen: https://github.com/ciaranj/connect-auth/wiki/Example-Basic-Middleware-Implementation-(Facebook) this gives a pretty full implementation of everything I think that you might need?
from connect-auth.
Related Issues (20)
- GET /oauth/authorize doesn't validate oauth_token parameter
- Cannot set property 'twitter_oauth_token_secret' of undefined
- ENOENT on installation HOT 5
- Google2 scopes handled incorrectly
- Modularize
- Per-request scoped scope HOT 5
- session not kept between http callbacks HOT 10
- how to handle authenticated && !req.isAuthenticated()? HOT 18
- Upgrade dependencies to versions that support 0.10.x HOT 1
- Add an explict LICENSE file HOT 1
- Please provide oauth2 client example as oauth2clientapp.js
- Facebook permission Scopes are buggy
- Support connect 2.8.x
- keyfile instructions unclear
- Has this project been abandoned
- upgrade connect to deal with qs vulnerabilities
- tweet on behalf of user HOT 1
- Archive?
- TypeError: Object #<Object> has no method 'fail' HOT 2
- OAuth data provider's tokenByConsumer() allows exactly one request token per consumer HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect-auth.