Giter Club home page Giter Club logo

Comments (13)

techyak avatar techyak commented on May 11, 2024

I'm having the same issue - and a similar one with the facebook example.

from connect-auth.

phillro avatar phillro commented on May 11, 2024

Ditto.

from connect-auth.

johannesfritsch avatar johannesfritsch commented on May 11, 2024

Same here

from connect-auth.

atmos avatar atmos commented on May 11, 2024

Same here with GitHub auth. It still works but the server eventually locks up.

from connect-auth.

misterMuyiwa avatar misterMuyiwa commented on May 11, 2024

i think your supposed to use res.end not res.send...

from connect-auth.

phillro avatar phillro commented on May 11, 2024

res.end worked.

from connect-auth.

gerad avatar gerad commented on May 11, 2024

I'm getting this with res.render but not with res.end

from connect-auth.

ciaranj avatar ciaranj commented on May 11, 2024

Implemented in 0.3.0

from connect-auth.

atmos avatar atmos commented on May 11, 2024

Haven't tested, but thank you.

from connect-auth.

tglines avatar tglines commented on May 11, 2024

I'm still having this issue as of 0.3.1

from connect-auth.

ciaranj avatar ciaranj commented on May 11, 2024

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.

tglines avatar tglines commented on May 11, 2024

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.

ciaranj avatar ciaranj commented on May 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.