Make TokenManager scalable and customizable

Created on 16 July 2023, over 1 year ago

Problem/Motivation

Currently, the only way to generate, create and validate tokens is through the default TokenManager implementation in the module. However, there could be other cases where the way to generate and validate tokens varies, making the current token generation and authentication method useless for those use cases - most likely a similar implementation of this might be used.

Because of this, I see valuable to create a way to leverage the current authentication method used in this module, but make a way for creating our own custom TokenManager, making this module scalable for other use cases.

Proposed resolution

  1. Create a service tag to create and collect custom TokenManager implementations
  2. Create a way to select the desired TokenManager to be used for token creation and validation
  3. Create a factory service to load the TokenManager service selected
Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica robert-arias

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

Comments & Activities

Production build 0.71.5 2024