GithubHelp home page GithubHelp logo

Comments (5)

d6veteran avatar d6veteran commented on May 22, 2024

What's odd is that if I logout from the GB app page, I don't also get logged out of Facebook. Is that how it should work . . . ??

I need to go to a couple sites using FB connect . . . I guess that's probably right:

  1. If you log into Facebook, you are also logged into 3rd party site.
  2. If you log out of 3rd party site, you do NOT log out of Facebook.
  3. If you log out of Facebook, you are also logged out of 3rd party site.

It seems like there should not be an option to log out of the 3rd party site without also logging out of Facebook. Right? Like you can log out of Facebook, but not log out of GB on it's own. In other words the concept of logging in an out is really only Facebook, and GB simply logs you in and out under the covers, based on inspecting the FB Cookie (to see if you are logged into FB or not).

Right?

from greenbean-sk.

d6veteran avatar d6veteran commented on May 22, 2024

I'm not sure if the latest version was a fix for this but I still see this behavior.

from greenbean-sk.

sampyxis avatar sampyxis commented on May 22, 2024

So, if you log out of FB - is there a way to force the user to log out of GB if it's not open? Probably not.

We'll need to put a check in on the open of the GB page to make sure we not only get the cookie from the user - but first check that it's the currently logged in user for the FB session.

from greenbean-sk.

sampyxis avatar sampyxis commented on May 22, 2024

Ok
It works if when the user first goes to the gb site - we force them to go to this url /auth/login - that works with the fb session and makes sure we have the correct user.

So, in the code we can either force them there (maybe sloppy since the url isn't clean) - or duplicate the code to do the login handler

from greenbean-sk.

sampyxis avatar sampyxis commented on May 22, 2024

This works now - and actually - we've switched it so we're just following what the user is doing with FB - if they are logged in to FB and they have added GreenBean - then they'll automatically be logged in here.

from greenbean-sk.

Related Issues (17)

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.