scimgateway 5.1.6 → 5.1.8
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 +57 -40
- package/bun.lock +638 -616
- package/index.ts +1 -2
- package/lib/plugin-ldap.ts +5 -5
- package/lib/scimgateway.ts +11 -5
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -190,13 +190,13 @@ For Node.js (and also Bun), we might set the property `scimgateway_postinstall_s
|
|
|
190
190
|
try {
|
|
191
191
|
await import(`./lib/plugin-${plugin}.ts`)
|
|
192
192
|
} catch (err: any) {
|
|
193
|
-
console.error(
|
|
194
|
-
console.log()
|
|
193
|
+
console.error(err)
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
|
|
198
197
|
|
|
199
|
-
Each endpoint plugin needs a TypeScript file (.ts) and a configuration file (.json).
|
|
198
|
+
Each endpoint plugin needs a TypeScript file (.ts) and a configuration file (.json).
|
|
199
|
+
**They both must have the same naming prefix**. For SAP Hana endpoint we have:
|
|
200
200
|
>lib\plugin-saphana.ts
|
|
201
201
|
>config\plugin-saphana.json
|
|
202
202
|
|
|
@@ -410,7 +410,7 @@ Definitions in `endpoint` object are customized according to our plugin code. Pl
|
|
|
410
410
|
"certificate": {
|
|
411
411
|
"key": "key.pem",
|
|
412
412
|
"cert": "cert.pem",
|
|
413
|
-
"ca":
|
|
413
|
+
"ca": "ca.pem" // if several: "ca": ["ca1.pem", "ca2.pem"]
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
Example of how to make a self signed certificate:
|
|
@@ -629,14 +629,14 @@ Configuration showing connection settings:
|
|
|
629
629
|
"auth": {
|
|
630
630
|
"type": "xxx",
|
|
631
631
|
"options": {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
632
|
+
...
|
|
633
|
+
"jwtPayload": {},
|
|
634
|
+
"samlPayload": {},
|
|
635
|
+
"tls": {} // files located in ./config/certs
|
|
636
|
+
}
|
|
637
637
|
},
|
|
638
638
|
"options": {
|
|
639
|
-
|
|
639
|
+
"headers": {},
|
|
640
640
|
"tls": {} // files located in ./config/certs
|
|
641
641
|
},
|
|
642
642
|
"proxy": {}
|
|
@@ -655,20 +655,20 @@ Example using basic auth:
|
|
|
655
655
|
|
|
656
656
|
"connection": {
|
|
657
657
|
"baseUrls": [
|
|
658
|
-
|
|
658
|
+
"https://localhost:8880"
|
|
659
659
|
],
|
|
660
660
|
"auth": {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
661
|
+
"type": "basic",
|
|
662
|
+
"options": {
|
|
663
|
+
"username": "gwadmin",
|
|
664
|
+
"password": "password"
|
|
665
|
+
}
|
|
666
666
|
},
|
|
667
667
|
"options": {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
668
|
+
"tls": {
|
|
669
|
+
"rejectUnauthorized": false,
|
|
670
|
+
"ca": "ca.pem"
|
|
671
|
+
}
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
|
|
@@ -677,12 +677,12 @@ Example Entra ID (plugin-entra-id) using clientId/clientSecret:
|
|
|
677
677
|
"connection": {
|
|
678
678
|
"baseUrls": [],
|
|
679
679
|
"auth": {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
680
|
+
"type": "oauth",
|
|
681
|
+
"options": {
|
|
682
|
+
"tenantIdGUID": "<tenantId>",
|
|
683
|
+
"clientId": "<clientId",
|
|
684
|
+
"clientSecret": "<clientSecret>"
|
|
685
|
+
}
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
|
|
@@ -691,29 +691,29 @@ Example Entra ID (plugin-entra-id) using certificate secret:
|
|
|
691
691
|
"connection": {
|
|
692
692
|
"baseUrls": [],
|
|
693
693
|
"auth": {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
"type": "oauth",
|
|
695
|
+
"options": {
|
|
696
|
+
"tenantIdGUID": "<tenantId>",
|
|
697
|
+
"clientId": "<clientId",
|
|
698
|
+
"tls": {
|
|
699
699
|
"key": "key.pem",
|
|
700
700
|
"cert": "cert.pem"
|
|
701
|
-
|
|
702
|
-
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
Example using general OAuth:
|
|
707
707
|
|
|
708
708
|
"connection": {
|
|
709
|
-
"baseUrls": ["endpointUrl"],
|
|
709
|
+
"baseUrls": [<"endpointUrl">],
|
|
710
710
|
"auth": {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
711
|
+
"type": "oauth",
|
|
712
|
+
"options": {
|
|
713
|
+
"tokenUrl": "<tokenUrl>"
|
|
714
|
+
"clientId": "<clientId",
|
|
715
|
+
"clientSecret": "<clientSecret>"
|
|
716
|
+
}
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
|
|
@@ -1291,6 +1291,23 @@ MIT © [Jarle Elshaug](https://www.elshaug.xyz)
|
|
|
1291
1291
|
|
|
1292
1292
|
## Change log
|
|
1293
1293
|
|
|
1294
|
+
### v5.1.8
|
|
1295
|
+
|
|
1296
|
+
[Fixed]
|
|
1297
|
+
|
|
1298
|
+
- plugin-ldap, dn that includes double underscore `__` not correctly handled
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
### v5.1.7
|
|
1302
|
+
|
|
1303
|
+
[Fixed]
|
|
1304
|
+
|
|
1305
|
+
- Using gateway certificate CA, the CA did not load correctly. It now also supports an array of multiple CAs.
|
|
1306
|
+
|
|
1307
|
+
[Improved]
|
|
1308
|
+
|
|
1309
|
+
- Dependencies bump
|
|
1310
|
+
|
|
1294
1311
|
### v5.1.6
|
|
1295
1312
|
|
|
1296
1313
|
[Improved]
|