[mirotalksfu] - make username from OIDC configurable via .env

هذا الالتزام موجود في:
Miroslav Pejic
2025-06-02 00:41:39 +02:00
الأصل bdad3f24c1
التزام 85268f52ac
7 ملفات معدلة مع 12 إضافات و9 حذوفات

عرض الملف

@@ -92,6 +92,9 @@ OIDC_BASE_URL= # OIDC base URL es https://you
OIDC_CLIENT_ID=clientID # OIDC client ID
OIDC_CLIENT_SECRET=clientSecret # OIDC client secret
OIDC_SECRET=mirotalksfu-oidc-secret # OIDC secret
OIDC_USERNAME_FORCE=true # Force the username to match OIDC email or name (true|false)
OIDC_USERNAME_AS_EMAIL=true # Set username as email from OIDC (true|false)
OIDC_USERNAME_AS_NAME=false # Set username as name from OIDC (true|false)
# Host protection
HOST_PROTECTED=false # Enable host protection (true|false)

عرض الملف

@@ -64,7 +64,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.8.56
* @version 1.8.57
*
*/

عرض الملف

@@ -328,9 +328,9 @@ module.exports = {
// User identity requirements
peer_name: {
force: true, // Require identity provider authentication
email: true, // Request email claim
name: false, // Don't require full name
force: process.env.OIDC_USERNAME_FORCE !== 'false', // Require identity provider authentication
email: process.env.OIDC_USERNAME_AS_EMAIL !== 'false', // Request email claim
name: process.env.OIDC_USERNAME_AS_NAME === 'true', // Don't require full name
},
// Provider configuration

عرض الملف

@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
"version": "1.8.56",
"version": "1.8.57",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {

عرض الملف

@@ -64,7 +64,7 @@ let BRAND = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: '<strong>WebRTC SFU v1.8.56</strong>',
title: '<strong>WebRTC SFU v1.8.57</strong>',
html: `
<button
id="support-button"

عرض الملف

@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
* @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.8.56
* @version 1.8.57
*
*/
@@ -5453,7 +5453,7 @@ function showAbout() {
position: 'center',
imageUrl: BRAND.about?.imageUrl && BRAND.about.imageUrl.trim() !== '' ? BRAND.about.imageUrl : image.about,
customClass: { image: 'img-about' },
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.56',
title: BRAND.about?.title && BRAND.about.title.trim() !== '' ? BRAND.about.title : 'WebRTC SFU v1.8.57',
html: `
<br />
<div id="about">

عرض الملف

@@ -9,7 +9,7 @@
* @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.8.56
* @version 1.8.57
*
*/