RESTful-Drupal / restful

RESTful best practices for Drupal
https://drupal.org/project/restful
419 stars 173 forks source link

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

Open tnightingale opened 7 years ago

tnightingale commented 7 years ago

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 commented 1 year ago

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