scimgateway 6.1.19 → 6.1.20
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 +6 -0
- package/lib/plugin-entra-id.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1304,6 +1304,12 @@ MIT © [Jarle Elshaug](https://www.elshaug.xyz)
|
|
|
1304
1304
|
|
|
1305
1305
|
## Change log
|
|
1306
1306
|
|
|
1307
|
+
### v6.1.20
|
|
1308
|
+
|
|
1309
|
+
[Fixed]
|
|
1310
|
+
|
|
1311
|
+
- plugin-entra-id: Roles introduced in v6.1.19 were missing when retrieving a single user.
|
|
1312
|
+
|
|
1307
1313
|
### v6.1.19
|
|
1308
1314
|
|
|
1309
1315
|
[Fixed]
|
package/lib/plugin-entra-id.ts
CHANGED
|
@@ -355,6 +355,7 @@ scimgateway.getUsers = async (baseEntity, getObj, attributes, ctx) => {
|
|
|
355
355
|
delete response.body.value[i].signInActivity.lastNonInteractiveSignInRequestId
|
|
356
356
|
delete response.body.value[i].signInActivity.lastSuccessfulSignInRequestId
|
|
357
357
|
}
|
|
358
|
+
|
|
358
359
|
if ((attributes.includes('roles') || attributes.length === 0) && mapAttributesTo.includes('roles')) {
|
|
359
360
|
response.body.value[i].roles = await getUserRoles(baseEntity, response.body.value[i].id, response.body.value[i].groups, ctx?.headers ? { headers: ctx?.headers } : undefined)
|
|
360
361
|
}
|
|
@@ -1396,7 +1397,7 @@ const fnCunckExecute = async (fnArr: { index?: number, fn: () => Promise<any> }[
|
|
|
1396
1397
|
if (statusCode !== 404) throw new Error(errMsg)
|
|
1397
1398
|
}
|
|
1398
1399
|
results.forEach((result, idx) => {
|
|
1399
|
-
if (result.status === 'fulfilled' && arrChunk[idx].index && responseValue && key) {
|
|
1400
|
+
if (result.status === 'fulfilled' && typeof arrChunk[idx].index === 'number' && responseValue && key) {
|
|
1400
1401
|
if (result.value) responseValue[arrChunk[idx].index][key] = result.value
|
|
1401
1402
|
else responseValue[arrChunk[idx].index][key] = result
|
|
1402
1403
|
}
|
package/package.json
CHANGED