Provide base classes or traits for the state and tempstore access token methods

Created on 30 March 2023, about 1 year ago
Updated 30 July 2023, 11 months ago

Problem/Motivation

When writing an Oauth2Client plugin you have to implement the store/retrieve/clearAccessToken methods yourself. However, it seems they will mostly be one of two common implementations (state, for all users, and tempstore, for individual users) - these are provided as examples but I think they will be commonly used it might be good to provide base class implementations or traits so developers don't have to copy and paste the methods from the examples each time.

Proposed resolution

  1. Create two traits, StateTokenStorage and TempStoreTokenStorage.
  2. Refactor the test plugins and the example plugins to use these traits.
  3. Verify passing tests.

User interface changes

None

API changes

None

Data model changes

None

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom longwave UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024