Comments (5)
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:
- If you log into Facebook, you are also logged into 3rd party site.
- If you log out of 3rd party site, you do NOT log out of Facebook.
- 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.
I'm not sure if the latest version was a fix for this but I still see this behavior.
from greenbean-sk.
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.
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.
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)
- Refactor App To New Datastore Schema
- Users can vote multiple times HOT 2
- Brag paging HOT 3
- User A can make posts for User B HOT 10
- Posts allow more that 140 chars HOT 5
- Page Refresh Too Frequent for Safari HOT 1
- Shouldn't be able to post a brag if not logged in HOT 2
- When viewing another users profile page - don't show text box HOT 1
- Error When New User Signs Up HOT 1
- Clean Up Design For GB Status On User Wall HOT 4
- Post FB Authorization url HOT 1
- Add Facebook Authentication For iFrame HOT 1
- FB Login/Logout Button HOT 8
- Formating is messed up on IE HOT 1
- Vote count in list HOT 1
- Facebook iFrame Detection Broken HOT 17
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 greenbean-sk.