scimgateway 5.2.4 → 5.2.5
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/README.md +8 -1
- package/lib/utils-scim.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -175,7 +175,8 @@ Upgrade to latest minor version:
|
|
|
175
175
|
|
|
176
176
|
Note, always backup/copy c:\\my-scimgateway before upgrading. Custom plugins and corresponding configuration files will not be affected.
|
|
177
177
|
|
|
178
|
-
To force a major upgrade (version x.\*.\* => y.\*.\*) that will brake compability with any existing custom plugins, we have to include the `@latest` suffix in the install command:
|
|
178
|
+
To force a major upgrade (version x.\*.\* => y.\*.\*) that will brake compability with any existing custom plugins, we have to include the `@latest` suffix in the install command:
|
|
179
|
+
`bun install scimgateway@latest`
|
|
179
180
|
|
|
180
181
|
##### Avoid (re-)adding the files created during `postinstall`
|
|
181
182
|
|
|
@@ -1403,6 +1404,12 @@ MIT © [Jarle Elshaug](https://www.elshaug.xyz)
|
|
|
1403
1404
|
|
|
1404
1405
|
## Change log
|
|
1405
1406
|
|
|
1407
|
+
### v5.2.5
|
|
1408
|
+
|
|
1409
|
+
[Fixed]
|
|
1410
|
+
|
|
1411
|
+
- endpointMapper (used by plugin-entra-id and plugin-ldap) in v5 when using mapping type=array, the first element was excluded on outbound mapping in some use cases
|
|
1412
|
+
|
|
1406
1413
|
### v5.2.4
|
|
1407
1414
|
|
|
1408
1415
|
[Improved]
|
package/lib/utils-scim.ts
CHANGED
|
@@ -480,7 +480,7 @@ export function endpointMapper(direction: string, parseObj: any, mapObj: any) {
|
|
|
480
480
|
if (dotMap[key2].split(',').map((item: string) => item.trim().toLowerCase()).includes(key.toLowerCase())) {
|
|
481
481
|
found = true
|
|
482
482
|
const keyRoot = key2.split('.').slice(0, -1).join('.') // xx.yy.mapTo => xx.yy
|
|
483
|
-
if (dotMap[`${keyRoot}.type`] === 'array' && arrIndex
|
|
483
|
+
if (dotMap[`${keyRoot}.type`] === 'array' && arrIndex >= 0) {
|
|
484
484
|
dotNewObj[`${keyRoot}.${arrIndex}`] = dotParse[keyOrg] // servicePlan.0.value => servicePlan.0 and groups[0].value => memberOf.0
|
|
485
485
|
}
|
|
486
486
|
dotNewObj[keyRoot] = dotParse[key] // {"accountEnabled": {"mapTo": "active"} => str.replace("accountEnabled", "active")
|
package/package.json
CHANGED