Adding some standard OpenID Connect providers (Google, Facebook) (WIP):

* frontend
This commit is contained in:
John Livingston
2024-04-22 14:28:55 +02:00
parent 024186ba2c
commit 0a492d1921
8 changed files with 148 additions and 93 deletions

View File

@ -109,7 +109,7 @@ async function initConverse (
let isRemoteWithNicknameSet: boolean = false
// OIDC (OpenID Connect):
const tryOIDC = !!initConverseParams.externalAuthOIDC
const tryOIDC = (initConverseParams.externalAuthOIDC?.length ?? 0) > 0
const auth = await getLocalAuthentInfos(authenticationUrl, tryOIDC, peertubeAuthHeader)
@ -171,8 +171,7 @@ async function initConverse (
params.livechat_specific_external_authent = isAuthenticatedWithExternalAccount
if (tryOIDC && !isAuthenticated) {
params.livechat_external_auth_oidc_button_label = initConverseParams.externalAuthOIDC?.buttonLabel
params.livechat_external_auth_oidc_url = initConverseParams.externalAuthOIDC?.url
params.livechat_external_auth_oidc_buttons = initConverseParams.externalAuthOIDC
}
if (tryOIDC) { // also needed when authenticated (for the signout button)