@adobe/spacecat-shared-http-utils 1.17.4 → 1.17.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@adobe/spacecat-shared-http-utils-v1.17.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.17.4...@adobe/spacecat-shared-http-utils-v1.17.5) (2025-09-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * track IMS handler usage ([#979](https://github.com/adobe/spacecat-shared/issues/979)) ([ba09d1d](https://github.com/adobe/spacecat-shared/commit/ba09d1d4510ffd8f4518edb0738db451b11d133a))
7
+
1
8
  # [@adobe/spacecat-shared-http-utils-v1.17.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.17.3...@adobe/spacecat-shared-http-utils-v1.17.4) (2025-09-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-http-utils",
3
- "version": "1.17.4",
3
+ "version": "1.17.5",
4
4
  "description": "Shared modules of the Spacecat Services - HTTP Utils",
5
5
  "type": "module",
6
6
  "engines": {
@@ -145,6 +145,11 @@ export default class AdobeImsHandler extends AbstractHandler {
145
145
  }
146
146
 
147
147
  async checkAuth(request, context) {
148
+ // Log to trace usage of IMS handler
149
+ const { pathInfo } = context;
150
+ const { method, suffix } = pathInfo;
151
+ const route = `${method.toUpperCase()} ${suffix}`;
152
+ this.log(`Checking authentication with IMS for product ${pathInfo.headers['x-product']} at route ${route}`, 'debug');
148
153
  const token = getBearerToken(context);
149
154
  if (!hasText(token)) {
150
155
  this.log('No bearer token provided', 'debug');