Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate session in auth code grant #282

Merged
merged 1 commit into from
Dec 15, 2014
Merged

Prevent duplicate session in auth code grant #282

merged 1 commit into from
Dec 15, 2014

Conversation

maknz
Copy link
Contributor

@maknz maknz commented Dec 15, 2014

The session already exists in the database, so we don't need to save it again. Doing so results in the session used for the auth code hanging around in the database with nothing associated to it, while the access token is associated to a new session caused by the save() method creating a duplicate. Fixes #266.

The session already exists in the database, so we don't need to save it again. Doing so results in the session used for the auth code hanging around in the database with nothing associated to it, while the access token is associated to a new session caused by the `save()` method creating a duplicate. Fixes #266.
alexbilbie added a commit that referenced this pull request Dec 15, 2014
Prevent duplicate session in auth code grant
@alexbilbie alexbilbie merged commit 40420f2 into thephpleague:master Dec 15, 2014
@alexbilbie
Copy link
Contributor

Thanks for this @maknz

@filerun
Copy link
Contributor

filerun commented Jan 14, 2015

The fix is good but incomplete, the save() call was used to associate the auth code scopes to the session. See: #299 (comment) for the required change for fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Two sessions created for each auth code
3 participants