diff --git a/pkg/assets/static/redirectpage/src/redirectpage.html b/pkg/assets/static/redirectpage.html similarity index 100% rename from pkg/assets/static/redirectpage/src/redirectpage.html rename to pkg/assets/static/redirectpage.html diff --git a/pkg/assets/static/redirectpage/src/redirectpage.js b/pkg/assets/static/redirectpage.js similarity index 98% rename from pkg/assets/static/redirectpage/src/redirectpage.js rename to pkg/assets/static/redirectpage.js index a510d1bf..08af78df 100644 --- a/pkg/assets/static/redirectpage/src/redirectpage.js +++ b/pkg/assets/static/redirectpage.js @@ -1,7 +1,4 @@ -import Keycloak from "keycloak-js"; - -// URL to get config -const configURL = "/api/v1/authconfig"; +const configURL = "/api/v1/authconfig"; // URL to get config const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); const link = urlParams.get("link"); diff --git a/pkg/assets/static/redirectpage/src/silent-check-sso.html b/pkg/assets/static/redirectpage/src/silent-check-sso.html deleted file mode 100644 index 94fe2268..00000000 --- a/pkg/assets/static/redirectpage/src/silent-check-sso.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pkg/assets/static/redirectpage/README.adoc b/redirectpage-tests/README.adoc similarity index 100% rename from pkg/assets/static/redirectpage/README.adoc rename to redirectpage-tests/README.adoc diff --git a/pkg/assets/static/redirectpage/babel.config.js b/redirectpage-tests/babel.config.js similarity index 100% rename from pkg/assets/static/redirectpage/babel.config.js rename to redirectpage-tests/babel.config.js diff --git a/pkg/assets/static/redirectpage/jest.config.js b/redirectpage-tests/jest.config.js similarity index 100% rename from pkg/assets/static/redirectpage/jest.config.js rename to redirectpage-tests/jest.config.js diff --git a/pkg/assets/static/redirectpage/package-lock.json b/redirectpage-tests/package-lock.json similarity index 100% rename from pkg/assets/static/redirectpage/package-lock.json rename to redirectpage-tests/package-lock.json diff --git a/pkg/assets/static/redirectpage/package.json b/redirectpage-tests/package.json similarity index 100% rename from pkg/assets/static/redirectpage/package.json rename to redirectpage-tests/package.json diff --git a/pkg/assets/static/redirectpage/src/redirectpage.test.js b/redirectpage-tests/src/redirectpage.test.js similarity index 98% rename from pkg/assets/static/redirectpage/src/redirectpage.test.js rename to redirectpage-tests/src/redirectpage.test.js index b36a6fda..33ec3b2b 100644 --- a/pkg/assets/static/redirectpage/src/redirectpage.test.js +++ b/redirectpage-tests/src/redirectpage.test.js @@ -3,7 +3,7 @@ import { getJSON, getRedirectData, redirectUser, -} from "./redirectpage"; +} from "../../pkg/assets/static/redirectpage.js"; //Mock dependencies global.fetch = jest.fn();