@adobe/spacecat-shared-http-utils 1.16.0 → 1.17.1

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.17.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.17.0...@adobe/spacecat-shared-http-utils-v1.17.1) (2025-09-06)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#920](https://github.com/adobe/spacecat-shared/issues/920)) ([1a6b1e1](https://github.com/adobe/spacecat-shared/commit/1a6b1e1ac9531a41c86406ada4bd4ab903307fdc))
7
+
8
+ # [@adobe/spacecat-shared-http-utils-v1.17.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.16.0...@adobe/spacecat-shared-http-utils-v1.17.0) (2025-08-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * adding email id for trail users ([#936](https://github.com/adobe/spacecat-shared/issues/936)) ([2ea524b](https://github.com/adobe/spacecat-shared/commit/2ea524b6c3f7e03b183d93e614b5e16278ed9fc7))
14
+
1
15
  # [@adobe/spacecat-shared-http-utils-v1.16.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.15.2...@adobe/spacecat-shared-http-utils-v1.16.0) (2025-08-20)
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.16.0",
3
+ "version": "1.17.1",
4
4
  "description": "Shared modules of the Spacecat Services - HTTP Utils",
5
5
  "type": "module",
6
6
  "engines": {
@@ -37,12 +37,12 @@
37
37
  "@adobe/fetch": "4.2.2",
38
38
  "@adobe/spacecat-shared-data-access": "2.45.0",
39
39
  "@adobe/spacecat-shared-utils": "1.26.4",
40
- "jose": "6.0.12"
40
+ "jose": "6.1.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@adobe/helix-shared-wrap": "2.0.2",
44
- "chai": "5.2.1",
45
- "chai-as-promised": "8.0.1",
44
+ "chai": "5.3.3",
45
+ "chai-as-promised": "8.0.2",
46
46
  "sinon": "20.0.0"
47
47
  }
48
48
  }
@@ -37,7 +37,7 @@ export default class AbstractHandler {
37
37
  * @return {Promise<AuthInfo|null>} The authentication info
38
38
  * or null if the request is not authenticated
39
39
  */
40
- // eslint-disable-next-line @typescript-eslint/no-unused-vars,class-methods-use-this
40
+ // eslint-disable-next-line no-unused-vars,class-methods-use-this
41
41
  async checkAuth(request, context) {
42
42
  throw new Error('checkAuth method must be implemented');
43
43
  }
@@ -60,6 +60,10 @@ const transformProfile = (payload) => {
60
60
  const profile = { ...payload };
61
61
 
62
62
  profile.email = payload.user_id;
63
+ profile.trial_email = payload.email;
64
+ profile.provider = 'IMS';
65
+ profile.first_name = payload.first_name;
66
+ profile.last_name = payload.last_name;
63
67
  IGNORED_PROFILE_PROPS.forEach((prop) => delete profile[prop]);
64
68
 
65
69
  return profile;
@@ -168,6 +172,9 @@ export default class AdobeImsHandler extends AbstractHandler {
168
172
  (tenant) => ({ name: 'user', domains: [tenant.id], subScopes: tenant.subServices }),
169
173
  ));
170
174
  }
175
+ payload.email = imsProfile.email;
176
+ payload.first_name = imsProfile.first_name;
177
+ payload.last_name = imsProfile.last_name;
171
178
  const profile = transformProfile(payload);
172
179
 
173
180
  return new AuthInfo()