[mirotalksfu] - fix OIDC dynamic config, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2025-03-06 09:28:43 +01:00
الأصل 54e6280ee0
التزام 8a83cc98dd
6 ملفات معدلة مع 20 إضافات و13 حذوفات

عرض الملف

@@ -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

عرض الملف

@@ -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