mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* fix(authentication) login dialog now closes when connection is established * fix(authentication) fixed shibboleth auth * fix(authentication) renamed authenticateExternal func to authenticate and updated its logic * fix(authentication)removed logindialog.js and created actions.any * fix(authentication) removed focus from externalauthwindow * fix(authentication) removed private sign from some actions and added openLoginDialog to actions.any * fix(authentication) exported all from actions.any * fix(authentication) reverted change regarding externalAuth * fix(authentication) fixed indentation
31 lines
764 B
JavaScript
31 lines
764 B
JavaScript
// @flow
|
|
|
|
declare var APP: Object;
|
|
|
|
export default {
|
|
|
|
/**
|
|
* Show notification that external auth is required (using provided url).
|
|
* @param {string} url - URL to use for external auth.
|
|
* @param {function} callback - callback to invoke when auth popup is closed.
|
|
* @returns auth dialog
|
|
*/
|
|
showExternalAuthDialog(url: string, callback: ?Function) {
|
|
const dialog = APP.UI.messageHandler.openCenteredPopup(
|
|
url, 910, 660,
|
|
|
|
// On closed
|
|
callback
|
|
);
|
|
|
|
if (!dialog) {
|
|
APP.UI.messageHandler.showWarning({
|
|
descriptionKey: 'dialog.popupError',
|
|
titleKey: 'dialog.popupErrorTitle'
|
|
});
|
|
}
|
|
|
|
return dialog;
|
|
}
|
|
};
|