From 8a83cc98ddb851b42b89ed5b308a8753c859edbf Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Thu, 6 Mar 2025 09:28:43 +0100 Subject: [PATCH] [mirotalksfu] - fix OIDC dynamic config, update dep --- app/src/Server.js | 18 ++++++++++++------ app/src/config.template.js | 1 + package.json | 6 +++--- public/js/Brand.js | 2 +- public/js/Room.js | 4 ++-- public/js/RoomClient.js | 2 +- 6 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/src/Server.js b/app/src/Server.js index 58eecccb..1b12133f 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -58,7 +58,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.7.67 + * @version 1.7.68 * */ @@ -435,11 +435,17 @@ function startServer() { if (OIDC.enabled) { const getDynamicConfig = (host, protocol) => { const baseURL = `${protocol}://${host}`; - log.debug('OIDC baseURL', baseURL); - return { - ...OIDC.config, - baseURL, - }; + + const config = OIDC.baseUrlDynamic + ? { + ...OIDC.config, + baseURL, + } + : OIDC.config; + + log.debug('OIDC baseURL', config.baseURL); + + return config; }; // Apply the authentication middleware using dynamic baseURL configuration diff --git a/app/src/config.template.js b/app/src/config.template.js index 6f6c26f1..ca2d7f19 100644 --- a/app/src/config.template.js +++ b/app/src/config.template.js @@ -195,6 +195,7 @@ module.exports = { For those seeking an open-source solution, check out: https://github.com/panva/node-oidc-provider */ enabled: false, + baseURLDynamic: false, peer_name: { force: true, // Enforce using profile data for peer_name email: true, // Use email as peer_name diff --git a/package.json b/package.json index d08b3810..4905d3d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalksfu", - "version": "1.7.67", + "version": "1.7.68", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { @@ -58,7 +58,7 @@ }, "dependencies": { "@mattermost/client": "10.2.0", - "@sentry/node": "^9.3.0", + "@sentry/node": "^9.4.0", "axios": "^1.8.1", "colors": "1.4.0", "compression": "1.8.0", @@ -79,7 +79,7 @@ "mediasoup-client": "3.9.1", "ngrok": "^5.0.0-beta.2", "nodemailer": "^6.10.0", - "openai": "^4.86.1", + "openai": "^4.86.2", "qs": "6.14.0", "sanitize-filename": "^1.6.3", "socket.io": "4.8.1", diff --git a/public/js/Brand.js b/public/js/Brand.js index 80fc6f54..a789e1e2 100644 --- a/public/js/Brand.js +++ b/public/js/Brand.js @@ -64,7 +64,7 @@ let BRAND = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC SFU v1.7.67', + title: 'WebRTC SFU v1.7.68', html: `