-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Description
I've just found what seems a weird issue with latest version (2.0@dev, not sure with previous but with this is happening with master). Retrieving user information with $plus->people->get("me"); gives information of the last logged user, not the current one. It seems a cache issue somewhere but I'm unable to find it.
Steps to reproduce
I've created this gist to share the code I'm using to reproduce this issue (notice that no session is used, so no information is stored across requests)
Once setup just:
- Access the script directly and start the OpenID Connect flow by clicking the
herelink, which will redirect you to Google Server, there enter your credentials. - Check at the callback page (should be the same) and see your name and mail.
- On another tab, logout from your Google account
- Retry the flow in step 1 to connect to Google and check the information about the user, notice that it shows the information of the last already logged out user and not the currently logged in.
Maybe it's my environment that can be using some sort of cache layer?
Environment info
Tried with:
- Windows7+PHP5.5 (Op cache enabled)
- OSX PHP5.5 opcache disabled
Metadata
Metadata
Assignees
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.