-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0d4c24
commit f6b7cf5
Showing
5 changed files
with
74 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ dependencies: { | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.32 | ||
* @version 1.4.33 | ||
* | ||
*/ | ||
|
||
|
@@ -444,7 +444,7 @@ function startServer() { | |
log.debug('Direct Join', { | ||
OIDCUserAuthenticated: OIDCUserAuthenticated, | ||
authenticated: hostCfg.authenticated, | ||
host_protected: hostCfg.protected, | ||
hostProtected: hostCfg.protected, | ||
}); | ||
|
||
let peerUsername, | ||
|
@@ -501,13 +501,26 @@ function startServer() { | |
|
||
const OIDCUserAuthenticated = OIDC.enabled && req.oidc.isAuthenticated(); | ||
|
||
if (OIDCUserAuthenticated || hostCfg.authenticated || authHost.isRoomActive()) { | ||
log.debug('/join/room', { | ||
OIDCUserAuthenticated: OIDCUserAuthenticated, | ||
authenticated: hostCfg.authenticated, | ||
host_protected: hostCfg.protected, | ||
activeRoom: authHost.isRoomActive(), | ||
}); | ||
const roomId = req.params.roomId; | ||
|
||
const roomActive = authHost.isRoomActive(); | ||
|
||
const roomExist = roomList.has(roomId); | ||
|
||
const roomCount = roomList.size; | ||
|
||
log.debug('/join/:roomId', { | ||
OIDCUserAuthenticated: OIDCUserAuthenticated, | ||
hostProtected: hostCfg.protected, | ||
hostAuthenticated: hostCfg.authenticated, | ||
roomActive: roomActive, | ||
roomExist: roomExist, | ||
roomCount: roomCount, | ||
roomId: roomId, | ||
}); | ||
|
||
if (OIDCUserAuthenticated || hostCfg.authenticated || roomActive) { | ||
//... | ||
|
||
if (hostCfg.protected) authHost.setRoomActive(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.32 | ||
* @version 1.4.33 | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.4.32 | ||
* @version 1.4.33 | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters