update openid-client to 5.7.1

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Nov 26, 2024 at 17:52 UTC 462c383b774d66e479344b17d117a6a5fe065f3c
2 files changed +11 -7
meshcentral.js
+2 -2
@@ -4192,12 +4192,12 @@ function mainStart() {
4192 if ((typeof config.domains[i].authstrategies.google == 'object') && (typeof config.domains[i].authstrategies.google.clientid == 'string') && (typeof config.domains[i].authstrategies.google.clientsecret == 'string') && (passport.indexOf('passport-google-oauth20') == -1)) { passport.push('passport-google-oauth20'); }
4193 if ((typeof config.domains[i].authstrategies.github == 'object') && (typeof config.domains[i].authstrategies.github.clientid == 'string') && (typeof config.domains[i].authstrategies.github.clientsecret == 'string') && (passport.indexOf('passport-github2') == -1)) { passport.push('passport-github2'); }
4194 if ((typeof config.domains[i].authstrategies.azure == 'object') && (typeof config.domains[i].authstrategies.azure.clientid == 'string') && (typeof config.domains[i].authstrategies.azure.clientsecret == 'string') && (typeof config.domains[i].authstrategies.azure.tenantid == 'string') && (passport.indexOf('passport-azure-oauth2') == -1)) { passport.push('passport-azure-oauth2'); passport.push('jwt-simple'); }
4195 - if ((typeof config.domains[i].authstrategies.oidc == 'object') && (passport.indexOf('openid-client') == -1)) {
4195 + if ((typeof config.domains[i].authstrategies.oidc == 'object') && (passport.indexOf('openid-client@5.7.1') == -1)) {
4196 if ((nodeVersion >= 17)
4197 || ((Math.floor(nodeVersion) == 16) && (nodeVersion >= 16.13))
4198 || ((Math.floor(nodeVersion) == 14) && (nodeVersion >= 14.15))
4199 || ((Math.floor(nodeVersion) == 12) && (nodeVersion >= 12.19))) {
4200 - passport.push('openid-client@5.7.0');
4200 + passport.push('openid-client@5.7.1');
4201 } else {
4202 addServerWarning('This NodeJS version does not support OpenID Connect on MeshCentral.', 25);
4203 delete config.domains[i].authstrategies.oidc;
package-lock.json
+9 -5
@@ -1,12 +1,12 @@
1 {
2 "name": "meshcentral",
3 - "version": "1.1.32",
3 + "version": "1.1.33",
4 "lockfileVersion": 3,
5 "requires": true,
6 "packages": {
7 "": {
8 "name": "meshcentral",
9 - "version": "1.1.32",
9 + "version": "1.1.33",
10 "license": "Apache-2.0",
11 "dependencies": {
12 "@yetzt/nedb": "1.8.0",
@@ -61,12 +61,14 @@
61 "node_modules/@yetzt/binary-search-tree": {
62 "version": "0.2.6",
63 "resolved": "https://registry.npmjs.org/@yetzt/binary-search-tree/-/binary-search-tree-0.2.6.tgz",
64 - "integrity": "sha512-e/8wt8AAumI8VK5sv09b3IgWuRoblXJ5z0SQYfrL2nap89oKihvVaP1zy3FzD5NaeRi1X0gdXZA9lB3QAZILBg=="
64 + "integrity": "sha512-e/8wt8AAumI8VK5sv09b3IgWuRoblXJ5z0SQYfrL2nap89oKihvVaP1zy3FzD5NaeRi1X0gdXZA9lB3QAZILBg==",
65 + "license": "MIT"
66 },
67 "node_modules/@yetzt/nedb": {
68 "version": "1.8.0",
69 "resolved": "https://registry.npmjs.org/@yetzt/nedb/-/nedb-1.8.0.tgz",
70 "integrity": "sha512-1hUV/eIPSCRb4Vs9dgLekBCCawWNtf29immIF9kvzxnnnEoWgyFSDZgFvlFCiQ3Bzo8ifXn92HDS3l9fNvmtzA==",
71 + "license": "MIT",
72 "dependencies": {
73 "@yetzt/binary-search-tree": "^0.2.6",
74 "async": "^3.2.0",
@@ -1206,6 +1208,7 @@
1208 "version": "1.0.4",
1209 "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
1210 "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
1211 + "license": "MIT",
1212 "bin": {
1213 "mkdirp": "bin/cmd.js"
1214 },
@@ -1871,7 +1874,8 @@
1874 "node_modules/underscore": {
1875 "version": "1.13.7",
1876 "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.7.tgz",
1874 - "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g=="
1877 + "integrity": "sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==",
1878 + "license": "MIT"
1879 },
1880 "node_modules/unpipe": {
1881 "version": "1.0.0",
@@ -2056,4 +2060,4 @@
2060 }
2061 }
2062 }
2059 -}
\ No newline at end of file
2063 +}