100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Upgraded Keycloak JS
Christian Bauerfea022b29804
diff --git a/manager/src/main/webapp/3rdparty/keycloak/1.9.0.CR1/keycloak.js b/manager/src/main/webapp/3rdparty/keycloak/1.9.0.Final/keycloak.jssimilarity index 98%rename from manager/src/main/webapp/3rdparty/keycloak/1.9.0.CR1/keycloak.jsrename to manager/src/main/webapp/3rdparty/keycloak/1.9.0.Final/keycloak.jsindex 4bfec592d..30453e387 100644--- a/manager/src/main/webapp/3rdparty/keycloak/1.9.0.CR1/keycloak.js+++ b/manager/src/main/webapp/3rdparty/keycloak/1.9.0.Final/keycloak.js@@ -878,31 +878,28 @@var loginUrl = kc.createLoginUrl(options);var ref = window.open(loginUrl, '_blank', o);- var callback;- var error;+ var completed = false;ref.addEventListener('loadstart', function(event) {if (event.url.indexOf('http://localhost') == 0) {- callback = parseCallback(event.url);+ var callback = parseCallback(event.url);+ processCallback(callback, promise);ref.close();+ completed = true;}});ref.addEventListener('loaderror', function(event) {- if (event.url.indexOf('http://localhost') == 0) {- callback = parseCallback(event.url);- ref.close();- } else {- error = true;- ref.close();- }- });-- ref.addEventListener('exit', function(event) {- if (error || !callback) {- promise.setError();- } else {- processCallback(callback, promise);+ if (!completed) {+ if (event.url.indexOf('http://localhost') == 0) {+ var callback = parseCallback(event.url);+ processCallback(callback, promise);+ ref.close();+ completed = true;+ } else {+ promise.setError();+ ref.close();+ }}});diff --git a/manager/src/main/webapp/index.html b/manager/src/main/webapp/index.htmlindex fe684f1a2..ac2c60e22 100644--- a/manager/src/main/webapp/index.html+++ b/manager/src/main/webapp/index.html@@ -8,7 +8,7 @@<script src="/jsapi"></script>- <script src="/static/3rdparty/keycloak/1.9.0.CR1/keycloak.js"></script>+ <script src="/static/3rdparty/keycloak/1.9.0.Final/keycloak.js"></script><script src="/static/gwt/Manager/Manager.nocache.js"></script>