scimgateway 4.2.15 → 4.2.17
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 +10 -0
- package/config/plugin-azure-ad.json +1 -1
- package/lib/plugin-loki.js +2 -2
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1170,6 +1170,16 @@ MIT © [Jarle Elshaug](https://www.elshaug.xyz)
|
|
|
1170
1170
|
|
|
1171
1171
|
## Change log
|
|
1172
1172
|
|
|
1173
|
+
### v4.2.17
|
|
1174
|
+
|
|
1175
|
+
[Fixed]
|
|
1176
|
+
|
|
1177
|
+
- plugin-loki incorrect unique filtering
|
|
1178
|
+
|
|
1179
|
+
[Added]
|
|
1180
|
+
|
|
1181
|
+
- Dependencies bump
|
|
1182
|
+
|
|
1173
1183
|
### v4.2.15
|
|
1174
1184
|
|
|
1175
1185
|
[Added]
|
package/lib/plugin-loki.js
CHANGED
|
@@ -148,7 +148,7 @@ scimgateway.getUsers = async (baseEntity, getObj, attributes, ctx) => {
|
|
|
148
148
|
// mandatory - unique filtering - single unique user to be returned - correspond to getUser() in versions < 4.x.x
|
|
149
149
|
const queryObj = {}
|
|
150
150
|
if (getObj.attribute === 'id') queryObj[getObj.attribute] = getObj.value
|
|
151
|
-
else queryObj[getObj.attribute] = { $regex: [getObj.value
|
|
151
|
+
else queryObj[getObj.attribute] = { $regex: [`^${getObj.value}$`, 'i'] } // case insensitive
|
|
152
152
|
// new RegExp(`^${getObj.value}$`, 'i')
|
|
153
153
|
usersArr = users.find(queryObj)
|
|
154
154
|
} else if (getObj.operator === '$eq' && getObj.attribute === 'group.value') {
|
|
@@ -411,7 +411,7 @@ scimgateway.getGroups = async (baseEntity, getObj, attributes, ctx) => {
|
|
|
411
411
|
// mandatory - unique filtering - single unique group to be returned - correspond to getGroup() in versions < 4.x.x
|
|
412
412
|
const queryObj = {}
|
|
413
413
|
if (getObj.attribute === 'id') queryObj[getObj.attribute] = getObj.value
|
|
414
|
-
else queryObj[getObj.attribute] = { $regex: [getObj.value
|
|
414
|
+
else queryObj[getObj.attribute] = { $regex: [`^${getObj.value}$`, 'i'] } // case insensitive
|
|
415
415
|
groupsArr = groups.find(queryObj)
|
|
416
416
|
} else if (getObj.operator === '$eq' && getObj.attribute === 'members.value') {
|
|
417
417
|
// mandatory - return all groups the user 'id' (getObj.value) is member of - correspond to getGroupMembers() in versions < 4.x.x
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scimgateway",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.17",
|
|
4
4
|
"description": "Using SCIM protocol as a gateway for user provisioning to other endpoints",
|
|
5
5
|
"author": "Jarle Elshaug <jarle.elshaug@gmail.com> (https://elshaug.xyz)",
|
|
6
6
|
"homepage": "https://elshaug.xyz",
|
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
"node": ">=16.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@godaddy/terminus": "^4.12.
|
|
35
|
+
"@godaddy/terminus": "^4.12.1",
|
|
36
36
|
"callsite": "^1.0.0",
|
|
37
37
|
"dot-object": "^2.1.4",
|
|
38
|
-
"https-proxy-agent": "^
|
|
38
|
+
"https-proxy-agent": "^7.0.2",
|
|
39
39
|
"is-in-subnet": "^4.0.1",
|
|
40
|
-
"jsonwebtoken": "^9.0.
|
|
40
|
+
"jsonwebtoken": "^9.0.2",
|
|
41
41
|
"koa": "^2.14.2",
|
|
42
|
-
"koa-bodyparser": "^4.4.
|
|
43
|
-
"koa-router": "^12.0.
|
|
44
|
-
"ldapjs": "^3.0.
|
|
42
|
+
"koa-bodyparser": "^4.4.1",
|
|
43
|
+
"koa-router": "^12.0.1",
|
|
44
|
+
"ldapjs": "^3.0.5",
|
|
45
45
|
"lokijs": "^1.5.12",
|
|
46
|
-
"mongodb": "^
|
|
46
|
+
"mongodb": "^6.1.0",
|
|
47
47
|
"node-machine-id": "1.1.9",
|
|
48
|
-
"nodemailer": "^6.9.
|
|
48
|
+
"nodemailer": "^6.9.6",
|
|
49
49
|
"passport": "^0.6.0",
|
|
50
50
|
"passport-azure-ad": "^4.3.5",
|
|
51
51
|
"soap": "^1.0.0",
|
|
52
|
-
"tedious": "^16.
|
|
53
|
-
"winston": "^3.
|
|
52
|
+
"tedious": "^16.5.0",
|
|
53
|
+
"winston": "^3.11.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"chai": "^4.2.0",
|