@adobe/spacecat-shared-http-utils 1.6.3 → 1.6.4
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.6.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.6.3...@adobe/spacecat-shared-http-utils-v1.6.4) (2024-08-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Add id to api-key DTO ([#330](https://github.com/adobe/spacecat-shared/issues/330)) ([aa451ab](https://github.com/adobe/spacecat-shared/commit/aa451abf7b0178412803b553fe9a39f47e958c02))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-http-utils-v1.6.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.6.2...@adobe/spacecat-shared-http-utils-v1.6.3) (2024-08-15)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ export default class ScopedApiKeyHandler extends AbstractHandler {
|
|
|
37
37
|
|
|
38
38
|
// Keys are stored by their hash, so we need to hash the key to look it up
|
|
39
39
|
const hashedApiKey = hashWithSHA256(apiKeyFromHeader);
|
|
40
|
+
this.log(`Checking for API key with hash: ${hashedApiKey}`, 'debug');
|
|
40
41
|
const apiKeyEntity = await dataAccess.getApiKeyByHashedApiKey(hashedApiKey);
|
|
41
42
|
|
|
42
43
|
if (!apiKeyEntity) {
|