Fix build

This commit is contained in:
garronej 2023-03-22 03:36:54 +01:00
parent c51fb29994
commit 6b031c709a
5 changed files with 9 additions and 8 deletions

View file

@ -31,7 +31,7 @@
"evt": "^2.4.15", "evt": "^2.4.15",
"jwt-decode": "^3.1.2", "jwt-decode": "^3.1.2",
"keycloak-js": "^21.0.1", "keycloak-js": "^21.0.1",
"keycloakify": "^7.0.0", "keycloakify": "^7.0.1",
"powerhooks": "^0.26.2", "powerhooks": "^0.26.2",
"react": "18.1.0", "react": "18.1.0",
"react-dom": "18.1.0", "react-dom": "18.1.0",

View file

@ -48,7 +48,7 @@ function ContextualizedApp() {
<> <>
<h1>You are authenticated !</h1> <h1>You are authenticated !</h1>
{/* On older Keycloak version its /auth/realms instead of /realms */} {/* 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> <pre style={{ textAlign: "left" }}>{JSON.stringify(jwt_decode(oidcClient.getAccessToken()), null, 2)}</pre>
<button onClick={() => oidcClient.logout({ redirectTo: "home" })}>Logout</button> <button onClick={() => oidcClient.logout({ redirectTo: "home" })}>Logout</button>
</> </>

View file

@ -45,6 +45,7 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
{realm.internationalizationEnabled && (assert(locale !== undefined), true) && locale.supported.length > 1 && ( {realm.internationalizationEnabled && (assert(locale !== undefined), true) && locale.supported.length > 1 && (
<li> <li>
<div className="kc-dropdown" id="kc-locale-dropdown"> <div className="kc-dropdown" id="kc-locale-dropdown">
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" id="kc-current-locale-link"> <a href="#" id="kc-current-locale-link">
{labelBySupportedLanguageTag[currentLanguageTag]} {labelBySupportedLanguageTag[currentLanguageTag]}
</a> </a>

View file

@ -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; const { msg } = i18n;
@ -55,7 +55,7 @@ export default function LogoutConfirm(props: PageProps<Extract<KcContext, { page
</div> </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="form-group">
<div className="col-sm-2 col-md-2"> <div className="col-sm-2 col-md-2">

View file

@ -6152,10 +6152,10 @@ keycloak-js@^21.0.1:
base64-js "^1.5.1" base64-js "^1.5.1"
js-sha256 "^0.9.0" js-sha256 "^0.9.0"
keycloakify@^7.0.0: keycloakify@^7.0.1:
version "7.0.0" version "7.0.1"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.0.0.tgz#fa40ce5a45915179f769ffd17891f7f1d83049fb" resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-7.0.1.tgz#7120ce5762517e40265939737e0bbffc8b70fc9c"
integrity sha512-LBqHjvurVXUAxzWvkdNQFtXJ2IbbzVZqbxIeeCLCk6NVuemgLhM6LmnR6IJRUhE5pTBZLkp9GoWl3jVPhBOPxg== integrity sha512-gL2Lmdks1grrR5SJ/uMKV9S/o3gRh6CaOKCGG+k0/UX5EQCVfiH+FiS4IG3Gq9zYx/zoZd3x4wELiTLxG+kuPg==
dependencies: dependencies:
"@octokit/rest" "^18.12.0" "@octokit/rest" "^18.12.0"
cheerio "^1.0.0-rc.5" cheerio "^1.0.0-rc.5"