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

Add support for multiple access tokens per user (#977) #982

Open
wants to merge 3 commits into
base: 7.x-2.x
Choose a base branch
from

Conversation

tnightingale
Copy link

Cleaned up and fixed the diff posted in #977.

This adds support for multiple access tokens per-user, a common use-case where a user might want to authenticate with Drupal from multiple devices (phone, tablet, 3rd party service, etc).

This modifies previous functionality of reusing existing access token / removing extra refresh tokens (which broke if you had two+ devices attempting to refresh with the same refresh token). An alternative would be to support both strategies and add configuration option to toggle between them.

@prudloff-insite
Copy link

Thanks for the patch!
We got bitten by this and I must say the non-patched behavior is quite surprising.

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.

2 participants