Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix event listener for testing idp (#16560)
boojack826a4ac330a3
diff --git a/frontend/src/components/IdentityProvider/TestConnection.vue b/frontend/src/components/IdentityProvider/TestConnection.vueindex 16c0b976ac..01f7bac314 100644--- a/frontend/src/components/IdentityProvider/TestConnection.vue+++ b/frontend/src/components/IdentityProvider/TestConnection.vue@@ -152,7 +152,7 @@ const testConnection = async () => {// Ensure event listener is set up for the correct IDP nameconst eventName = `bb.oauth.signin.${idpForTesting.name}`;- // Remove any existing listener first+ // Remove any existing listener first.if (currentEventName.value) {window.removeEventListener(currentEventName.value,@@ -160,16 +160,13 @@ const testConnection = async () => {false);}-- // Add the listener only if it's not already registered for this event- if (currentEventName.value !== eventName) {- window.addEventListener(- eventName,- loginWithIdentityProviderEventListener,- false- );- currentEventName.value = eventName;- }+ // Add a new event listener.+ window.addEventListener(+ eventName,+ loginWithIdentityProviderEventListener,+ false+ );+ currentEventName.value = eventName;try {await openWindowForSSO(idpForTesting);