Possibility to configure an OpenID Connect provider on the instance level WIP (#128).

This commit is contained in:
John Livingston
2024-04-16 11:43:38 +02:00
parent 514cc1d159
commit e646ebfd69
8 changed files with 108 additions and 24 deletions

View File

@ -34,7 +34,12 @@ export const livechatSpecificsPlugin = {
}
// update other settings
for (const k of ['hide_muc_participants', 'livechat_enable_viewer_mode', 'livechat_mini_muc_head']) {
for (const k of [
'hide_muc_participants',
'livechat_enable_viewer_mode',
'livechat_external_auth_oidc_button_label',
'livechat_mini_muc_head'
]) {
_converse.api.settings.set(k, params[k])
}

View File

@ -8,7 +8,8 @@ export const livechatViewerModePlugin = {
_converse.api.settings.extend({
livechat_enable_viewer_mode: false,
livechat_peertube_video_original_url: undefined,
livechat_peertube_video_uuid: undefined
livechat_peertube_video_uuid: undefined,
livechat_external_auth_oidc_button_label: undefined
})
const originalGetDefaultMUCNickname = _converse.getDefaultMUCNickname