scimgateway 5.2.5 → 5.3.1
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 +24 -9
- package/bun.lock +178 -30
- package/config/plugin-api.json +1 -1
- package/config/plugin-scim.json +1 -1
- package/lib/logger.ts +32 -15
- package/lib/plugin-ldap.ts +4 -0
- package/lib/scim-stream.js +1 -1
- package/lib/scimdef-v1.json +2 -2
- package/lib/scimdef-v2.json +1 -1
- package/lib/scimgateway.ts +198 -9
- package/lib/utils-scim.ts +121 -28
- package/package.json +9 -9
- package/test/lib/plugin-loki_test.ts +73 -0
package/README.md
CHANGED
|
@@ -16,9 +16,10 @@ Validated through IdP's:
|
|
|
16
16
|
|
|
17
17
|
Latest news:
|
|
18
18
|
|
|
19
|
+
- [Bulk Operations](https://datatracker.ietf.org/doc/html/rfc7644#section-3.7) now supported
|
|
19
20
|
- Remote real-time log subscription for monitoring and centralized logging
|
|
20
|
-
using browser and url: https
|
|
21
|
-
curl -N https
|
|
21
|
+
using browser and url: `https://<host>/logger`
|
|
22
|
+
`curl -N https://<host>/logger -u user:password`
|
|
22
23
|
custom client API, see configuration notes
|
|
23
24
|
- By configuring the chainingBaseUrl, it is now possible to chain multiple gateways in sequence, such as `gateway1->gateway2->gateway3->endpoint`. In this setup, gateway beave much like a reverse proxy, validating authorization at each step unless PassThrough mode is enabled. Chaining is also supported in stream subscriber mode
|
|
24
25
|
- Email, onError and sendMail() supports more secure RESTful OAuth for Microsoft Exchange Online (ExO) and Google Workspace Gmail, alongside traditional SMTP Auth for all mail systems. HelperRest supports a wide range of common authentication methods, including basicAuth, bearerAuth, tokenAuth, oauth, oauthSamlBearer, oauthJwtBearer and Auth PassTrough
|
|
@@ -158,7 +159,7 @@ If internet connection is blocked, we could install on another machine and copy
|
|
|
158
159
|
>Tip, take a look at bun test scripts located in `node_modules\scimgateway\test\lib`
|
|
159
160
|
|
|
160
161
|
> If using Node.js instead of Bun, scimgateway must be downloaded from github because Node.js does not support native typescript used by modules. Startup will then be:
|
|
161
|
-
node --experimental-strip-types c:\my-scimgateway\index.ts
|
|
162
|
+
`node --experimental-strip-types c:\my-scimgateway\index.ts`
|
|
162
163
|
|
|
163
164
|
#### Upgrade SCIM Gateway
|
|
164
165
|
|
|
@@ -1350,10 +1351,10 @@ Plugins should have following initialization:
|
|
|
1350
1351
|
// start - mandatory plugin initialization
|
|
1351
1352
|
const ScimGateway: typeof import('scimgateway').ScimGateway = await (async () => {
|
|
1352
1353
|
try {
|
|
1353
|
-
|
|
1354
|
+
return (await import('scimgateway')).ScimGateway
|
|
1354
1355
|
} catch (err) {
|
|
1355
|
-
|
|
1356
|
-
|
|
1356
|
+
const source = './scimgateway.ts'
|
|
1357
|
+
return (await import(source)).ScimGateway
|
|
1357
1358
|
}
|
|
1358
1359
|
})()
|
|
1359
1360
|
const scimgateway = new ScimGateway()
|
|
@@ -1367,10 +1368,10 @@ If using REST, we could also include the HelperRest:
|
|
|
1367
1368
|
...
|
|
1368
1369
|
const HelperRest: typeof import('scimgateway').HelperRest = await (async () => {
|
|
1369
1370
|
try {
|
|
1370
|
-
|
|
1371
|
+
return (await import('scimgateway')).HelperRest
|
|
1371
1372
|
} catch (err) {
|
|
1372
|
-
|
|
1373
|
-
|
|
1373
|
+
const source = './scimgateway.ts'
|
|
1374
|
+
return (await import(source)).HelperRest
|
|
1374
1375
|
}
|
|
1375
1376
|
})()
|
|
1376
1377
|
...
|
|
@@ -1404,6 +1405,20 @@ MIT © [Jarle Elshaug](https://www.elshaug.xyz)
|
|
|
1404
1405
|
|
|
1405
1406
|
## Change log
|
|
1406
1407
|
|
|
1408
|
+
### v5.3.1
|
|
1409
|
+
|
|
1410
|
+
[Fixed]
|
|
1411
|
+
|
|
1412
|
+
- Incorrect log masking of SCIM 2.0 PATCH Operations
|
|
1413
|
+
- plugin-ldap, create user/group having DN special character `#` failed on OpenLDAP
|
|
1414
|
+
|
|
1415
|
+
### v5.3.0
|
|
1416
|
+
|
|
1417
|
+
[Improved]
|
|
1418
|
+
|
|
1419
|
+
- [Bulk Operations](https://datatracker.ietf.org/doc/html/rfc7644#section-3.7) now supported
|
|
1420
|
+
- Dependencies bump
|
|
1421
|
+
|
|
1407
1422
|
### v5.2.5
|
|
1408
1423
|
|
|
1409
1424
|
[Fixed]
|