ApiClient loads keys from Key module incorrectly

Created on 25 March 2022, over 2 years ago
Updated 8 September 2023, over 1 year ago

Problem/Motivation

The ApiClient class only loads the key ID from the Key module, but never retrieves the actual key value to use in API calls.
This can be mitigated by manually setting the key in the $config variable in settings.php.

Steps to reproduce

  1. Setup a key for the module using the key_select form element.
  2. Using a debugger or logs, check outgoing requests to the Point API and check the value of "x-api-key" in the request header, it will be the ID of the key as stored in the key module, but not the actual API key.
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇺Australia Eric115

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024