aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar garronej <[email protected]>2023-03-22 03:36:54 +0100
committerGravatar garronej <[email protected]>2023-03-22 03:36:54 +0100
commit6b031c709a39699ca34979bb99af6dba8fa4f598 (patch)
tree42e27a9eee7079d827228b1a63a03550252cd628
parentUpdate README (diff)
Fix build
-rwxr-xr-xpackage.json2
-rw-r--r--src/App/App.tsx2
-rw-r--r--src/keycloak-theme/account/Template.tsx1
-rw-r--r--src/keycloak-theme/account/pages/Password.tsx4
-rw-r--r--yarn.lock8
5 files changed, 9 insertions, 8 deletions
diff --git a/package.json b/package.json
index 1b8feff..2072e93 100755
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
"evt": "^2.4.15",
"jwt-decode": "^3.1.2",
"keycloak-js": "^21.0.1",
- "keycloakify": "^7.0.0",
+ "keycloakify": "^7.0.1",
"powerhooks": "^0.26.2",
"react": "18.1.0",
"react-dom": "18.1.0",
diff --git a/src/App/App.tsx b/src/App/App.tsx
index 9efcf9f..0d9cc38 100644
--- a/src/App/App.tsx
+++ b/src/App/App.tsx
@@ -48,7 +48,7 @@ function ContextualizedApp() {
<>
<h1>You are authenticated !</h1>
{/* On older Keycloak version its /auth/realms instead of /realms */}
- <a href={`${keycloakUrl}/realms/${keycloakRealm}/account`} target="_blank">Link to your Keycloak account</a>
+ <a href={`${keycloakUrl}/realms/${keycloakRealm}/account`} target="_blank" rel="noreferrer">Link to your Keycloak account</a>
<pre style={{ textAlign: "left" }}>{JSON.stringify(jwt_decode(oidcClient.getAccessToken()), null, 2)}</pre>
<button onClick={() => oidcClient.logout({ redirectTo: "home" })}>Logout</button>
</>
diff --git a/src/keycloak-theme/account/Template.tsx b/src/keycloak-theme/account/Template.tsx
index 283178b..d535986 100644
--- a/src/keycloak-theme/account/Template.tsx
+++ b/src/keycloak-theme/account/Template.tsx
@@ -45,6 +45,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
{realm.internationalizationEnabled && (assert(locale !== undefined), true) && locale.supported.length > 1 && (
<li>
<div className="kc-dropdown" id="kc-locale-dropdown">
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" id="kc-current-locale-link">
{labelBySupportedLanguageTag[currentLanguageTag]}
</a>
diff --git a/src/keycloak-theme/account/pages/Password.tsx b/src/keycloak-theme/account/pages/Password.tsx
index c92b4d1..b583c08 100644
--- a/src/keycloak-theme/account/pages/Password.tsx
+++ b/src/keycloak-theme/account/pages/Password.tsx
@@ -15,7 +15,7 @@ export default function LogoutConfirm(props: PageProps<Extract<KcContext, { page
}
});
- const { url, password, account } = kcContext;
+ const { url, password, account, stateChecker } = kcContext;
const { msg } = i18n;
@@ -55,7 +55,7 @@ export default function LogoutConfirm(props: PageProps<Extract<KcContext, { page
</div>
)}
- <input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}" />
+ <input type="hidden" id="stateChecker" name="stateChecker" value={stateChecker} />
<div className="form-group">
<div className="col-sm-2 col-md-2">
diff --git a/yarn.lock b/yarn.lock
index 3886372..1355c3d 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6152,10 +6152,10 @@ keycloak-js@^21.0.1:
base64-js "^1.5.1"
js-sha256 "^0.9.0"
-keycloakify@^7.0.0:
- version "7.0.0"
- resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.0.0.tgz#fa40ce5a45915179f769ffd17891f7f1d83049fb"
- integrity sha512-LBqHjvurVXUAxzWvkdNQFtXJ2IbbzVZqbxIeeCLCk6NVuemgLhM6LmnR6IJRUhE5pTBZLkp9GoWl3jVPhBOPxg==
+keycloakify@^7.0.1:
+ version "7.0.1"
+ resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.0.1.tgz#7120ce5762517e40265939737e0bbffc8b70fc9c"
+ integrity sha512-gL2Lmdks1grrR5SJ/uMKV9S/o3gRh6CaOKCGG+k0/UX5EQCVfiH+FiS4IG3Gq9zYx/zoZd3x4wELiTLxG+kuPg==
dependencies:
"@octokit/rest" "^18.12.0"
cheerio "^1.0.0-rc.5"