Add Support for Drupal Tokens in Query Options Headers

Created on 26 March 2025, 8 days ago

Problem/Motivation

Currently the Headers in Advanced > Query Settings > Settings > Headers, do not support Drupal tokens.

We have authentication tokens for user sessions which will be different per user, so we can't hardcode their auth token.

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

2.0

Component

Code

Created by

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