Authentication Custom Header should support Drupal token replacements

Created on 14 February 2025, 10 days ago

Problem/Motivation

The Authentication Custom Header field in the entity configuration form works well, but doesn't support variable values. We've got a authentication token in users' sessions, which will obviously be different per user. So we can't hardcode a value here.

Proposed resolution

Wrap the use of the value in Token::replacePlain() so that any Drupal tokens set in there can be expanded.

For example, the Drupal token could be something like [User:remoteId], which would be placed in the configuration field, and expanded on use.

Remaining tasks

  1. Wrap the use of the configuration value
  2. Test

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇦Canada colan Toronto 🇨🇦

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024