@adobe/spacecat-shared-http-utils 1.6.0 → 1.6.2

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,17 @@
1
+ # [@adobe/spacecat-shared-http-utils-v1.6.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.6.1...@adobe/spacecat-shared-http-utils-v1.6.2) (2024-08-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * refactor hashed api key and query to retrieve API key ([#325](https://github.com/adobe/spacecat-shared/issues/325)) ([a99fc76](https://github.com/adobe/spacecat-shared/commit/a99fc76963fdcd6bce8de7d5b315dbefbb03fd95))
7
+
8
+ # [@adobe/spacecat-shared-http-utils-v1.6.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.6.0...@adobe/spacecat-shared-http-utils-v1.6.1) (2024-08-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add query changes ([#324](https://github.com/adobe/spacecat-shared/issues/324)) ([6104f65](https://github.com/adobe/spacecat-shared/commit/6104f65620f8f020e70494c2c2138ae2afefe15e))
14
+
1
15
  # [@adobe/spacecat-shared-http-utils-v1.6.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.5.0...@adobe/spacecat-shared-http-utils-v1.6.0) (2024-08-14)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-http-utils",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Shared modules of the Spacecat Services - HTTP Utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@adobe/fetch": "4.1.8",
33
33
  "@adobe/spacecat-shared-utils": "1.19.1",
34
- "@adobe/spacecat-shared-data-access": "1.39.0",
34
+ "@adobe/spacecat-shared-data-access": "1.41.2",
35
35
  "jose": "5.6.3"
36
36
  },
37
37
  "devDependencies": {
@@ -43,11 +43,13 @@ export default class ScopedApiKeyHandler extends AbstractHandler {
43
43
  this.log(`No API key entity found in the data layer for the provided API key: ${apiKeyFromHeader}`, 'error');
44
44
  return null;
45
45
  }
46
+ this.log(`Valid API key entity found. Id: ${apiKeyEntity.getId()}, name: ${apiKeyEntity.getName()}, scopes: ${apiKeyEntity.getScopes()}`, 'debug');
46
47
 
47
48
  // We have an API key entity, and need to check if it's still valid
48
49
  const authInfo = new AuthInfo()
49
50
  .withProfile(apiKeyEntity) // Include the API key entity as the profile
50
51
  .withType(this.name);
52
+ this.log('Successfully constructed authInfo object', 'debug');
51
53
 
52
54
  // Verify that the api key has not expired or been revoked
53
55
  const now = new Date().toISOString();