@adobe/spacecat-shared-http-utils 1.14.1 → 1.14.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 +7 -0
- package/package.json +1 -1
- package/src/auth/handlers/ims.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-http-utils-v1.14.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.14.1...@adobe/spacecat-shared-http-utils-v1.14.2) (2025-06-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* case insensitive check ([#804](https://github.com/adobe/spacecat-shared/issues/804)) ([264a524](https://github.com/adobe/spacecat-shared/commit/264a5245301660e842a40187afbfe1a7c1af31d2))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-http-utils-v1.14.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.14.0...@adobe/spacecat-shared-http-utils-v1.14.1) (2025-06-06)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/auth/handlers/ims.js
CHANGED
|
@@ -136,7 +136,7 @@ export default class AdobeImsHandler extends AbstractHandler {
|
|
|
136
136
|
const payload = await this.#validateToken(token, config);
|
|
137
137
|
const imsProfile = await context.imsClient.getImsUserProfile(token);
|
|
138
138
|
const scopes = [];
|
|
139
|
-
if (imsProfile.email?.endsWith('@adobe.com')) {
|
|
139
|
+
if (imsProfile.email?.toLowerCase().endsWith('@adobe.com')) {
|
|
140
140
|
scopes.push({ name: 'admin' });
|
|
141
141
|
} else {
|
|
142
142
|
// for non-adobe users, we need to get the organizations and create the tenants
|