scimgateway 5.0.4 → 5.0.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 -2
- package/lib/plugin-ldap.ts +1 -1
- package/lib/scimgateway.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Latest news:
|
|
|
18
18
|
|
|
19
19
|
- Major version **v5.0.0** marks a shift to native TypeScript support and prioritizes [Bun](https://bun.sh/) over Node.js. This upgrade requires some modifications to existing plugins.
|
|
20
20
|
- **BREAKING**: [SCIM Stream](https://elshaug.xyz/docs/scim-stream) is the modern way of user provisioning letting clients subscribe to messages instead of traditional IGA top-down provisioning. SCIM Gateway now offers enhanced functionality with support for message subscription and automated provisioning using SCIM Stream
|
|
21
|
-
- Authentication PassThrough letting plugin pass authentication directly to endpoint for avoid maintaining secrets at the gateway
|
|
21
|
+
- Authentication PassThrough letting plugin pass authentication directly to endpoint for avoid maintaining secrets at the gateway
|
|
22
22
|
- Supports OAuth Client Credentials authentication
|
|
23
23
|
- Major version **v4.0.0** getUsers() and getGroups() replacing some deprecated methods. No limitations on filtering/sorting. Admin user access can be linked to specific baseEntities. New MongoDB plugin
|
|
24
24
|
- ipAllowList for restricting access to allowlisted IP addresses or subnets e.g. Azure IP-range
|
|
@@ -157,7 +157,7 @@ If internet connection is blocked, we could install on another machine and copy
|
|
|
157
157
|
|
|
158
158
|
Not needed after a fresh install
|
|
159
159
|
|
|
160
|
-
The best and easiest way to upgrade is renaming existing scimgateway package folder, create a new one and do a fresh installation. After the installation we copy `index.ts, config and lib folder` (customized plugins) from previous installation to the new installation. You should also read the version history to see custom plugins needs to be updated.
|
|
160
|
+
The best and easiest way to upgrade is renaming existing scimgateway package folder, create a new one and do a fresh installation. After the installation we copy `index.ts, config and lib folder` (customized plugins) from previous installation to the new installation. You should also read the version history to see if custom plugins needs to be updated.
|
|
161
161
|
|
|
162
162
|
Alternatives are:
|
|
163
163
|
|
|
@@ -1086,6 +1086,12 @@ MIT © [Jarle Elshaug](https://www.elshaug.xyz)
|
|
|
1086
1086
|
|
|
1087
1087
|
## Change log
|
|
1088
1088
|
|
|
1089
|
+
### v5.0.5
|
|
1090
|
+
|
|
1091
|
+
[Fixed]
|
|
1092
|
+
|
|
1093
|
+
- plugin-ldap, dn special character not correct for ascii code 128(dec)/80(hex)
|
|
1094
|
+
|
|
1089
1095
|
### v5.0.4
|
|
1090
1096
|
|
|
1091
1097
|
[Improved]
|
package/lib/plugin-ldap.ts
CHANGED
|
@@ -1452,7 +1452,7 @@ const doRequest = async (baseEntity: string, method: string, base: any, options:
|
|
|
1452
1452
|
obj.dn = obj.dn.replace(/\\\\/g, '__') // temp
|
|
1453
1453
|
let conv = obj.dn.replace(/\\([0-9A-Fa-f]{2})/g, (_: any, hex: any) => {
|
|
1454
1454
|
const intAscii = parseInt(hex, 16)
|
|
1455
|
-
if (intAscii >
|
|
1455
|
+
if (intAscii > 127) { // extended ascii - will be unescaped by decodeURIComponent
|
|
1456
1456
|
return '%' + hex
|
|
1457
1457
|
} else { // use character escape
|
|
1458
1458
|
return '\\' + String.fromCharCode(intAscii)
|
package/lib/scimgateway.ts
CHANGED
|
@@ -896,7 +896,7 @@ export class ScimGateway {
|
|
|
896
896
|
const baseEntity = ctx.routeObj.baseEntity
|
|
897
897
|
const id = decodeURIComponent(path.basename(ctx.routeObj.id || '', '.json')) // supports <id>.json
|
|
898
898
|
|
|
899
|
-
if (!id
|
|
899
|
+
if (!id) {
|
|
900
900
|
ctx.response.status = 500
|
|
901
901
|
const err = new Error('missing id')
|
|
902
902
|
const [e, customErrorCode] = utilsScim.jsonErr(this.config.scimgateway.scim.version, pluginName, ctx.response.status, err)
|
package/package.json
CHANGED