Possibility to configure an OpenID Connect provider on the instance level WIP (#128).
This commit is contained in:
@ -9,14 +9,15 @@ export const tplExternalLoginModal = (el, o) => {
|
||||
const i18nRemotePeertubeUrl = __(LOC_login_remote_peertube_url)
|
||||
const i18nRemotePeertubeOpen = __('OK')
|
||||
const externalAuthOIDCButtonLabel = api.settings.get('livechat_external_auth_oidc_button_label')
|
||||
const externalAuthOIDCUrl = api.settings.get('livechat_external_auth_oidc_url')
|
||||
return html`<div class="modal-body livechat-external-login-modal">
|
||||
${!externalAuthOIDCButtonLabel
|
||||
${!externalAuthOIDCButtonLabel || !externalAuthOIDCUrl
|
||||
? ''
|
||||
: html`
|
||||
<div class="livechat-external-login-modal-external-auth-oidc">
|
||||
<button
|
||||
class="btn btn-primary"
|
||||
@click=${() => console.log('ok, go')}
|
||||
@click=${() => window.open(externalAuthOIDCUrl)}
|
||||
>
|
||||
${externalAuthOIDCButtonLabel}
|
||||
</button>
|
||||
|
Reference in New Issue
Block a user