@adobe/spacecat-shared-http-utils 1.16.0 → 1.17.0
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 +7 -0
- package/package.json +1 -1
- package/src/auth/handlers/ims.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@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)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* adding email id for trail users ([#936](https://github.com/adobe/spacecat-shared/issues/936)) ([2ea524b](https://github.com/adobe/spacecat-shared/commit/2ea524b6c3f7e03b183d93e614b5e16278ed9fc7))
|
|
7
|
+
|
|
1
8
|
# [@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
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/auth/handlers/ims.js
CHANGED
|
@@ -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()
|