Fixes broken Shibboleth authentication.

This commit is contained in:
paweldomas
2015-03-17 08:47:37 +01:00
parent 6e99286bd0
commit 0848283f6d
3 changed files with 100 additions and 29 deletions

View File

@@ -298,6 +298,13 @@ var Moderator = {
// Not authorized to create new room
if ($(error).find('>error>not-authorized').length) {
console.warn("Unauthorized to start the conference", error);
var toDomain
= Strophe.getDomainFromJid(error.getAttribute('to'));
if (toDomain !== config.hosts.anonymousdomain) {
// FIXME: "is external" should come either from
// the focus or config.js
externalAuthEnabled = true;
}
eventEmitter.emit(
XMPPEvents.AUTHENTICATION_REQUIRED,
function () {