keycloakify 11.9.6 → 11.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -130,6 +130,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
130
130
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/kodebach"><img src="https://avatars.githubusercontent.com/u/23529132?v=4?s=100" width="100px;" alt="Klemens Böswirth"/><br /><sub><b>Klemens Böswirth</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=kodebach" title="Code">💻</a></td>
131
131
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/wnmzzzz"><img src="https://avatars.githubusercontent.com/u/117174301?v=4?s=100" width="100px;" alt="wnmzzzz"/><br /><sub><b>wnmzzzz</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=wnmzzzz" title="Tests">⚠️</a></td>
132
132
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/DerIch27"><img src="https://avatars.githubusercontent.com/u/62176944?v=4?s=100" width="100px;" alt="Lars Gottfriedsen"/><br /><sub><b>Lars Gottfriedsen</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=DerIch27" title="Code">💻</a></td>
133
+ <td align="center" valign="top" width="14.28%"><a href="http://www.linkedin.com/in/antonioacg/"><img src="https://avatars.githubusercontent.com/u/8991621?v=4?s=100" width="100px;" alt="Antonio Casagrande"/><br /><sub><b>Antonio Casagrande</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=antonioacg" title="Code">💻</a></td>
133
134
  </tr>
134
135
  </tbody>
135
136
  </table>
package/bin/712.index.js CHANGED
@@ -1612,14 +1612,21 @@ async function buildJar(params) {
1612
1612
  }
1613
1613
  {
1614
1614
  const mvnBuildCmd = `mvn clean install -Dmaven.repo.local="${(0,external_path_.join)(keycloakifyBuildCacheDirPath, ".m2")}"`;
1615
- await new Promise((resolve, reject) => external_child_process_default().exec(mvnBuildCmd, { cwd: keycloakifyBuildCacheDirPath }, error => {
1615
+ await new Promise((resolve, reject) => external_child_process_default().exec(mvnBuildCmd, { cwd: keycloakifyBuildCacheDirPath }, (error, stdout, stderr) => {
1616
1616
  if (error !== null) {
1617
- console.error([
1617
+ console.log([
1618
1618
  `Build jar failed: ${JSON.stringify({
1619
1619
  jarFileBasename,
1620
1620
  keycloakAccountV1Version,
1621
1621
  keycloakThemeAdditionalInfoExtensionVersion
1622
1622
  }, null, 2)}`,
1623
+ "",
1624
+ "Output of the `mvn clean install` command:",
1625
+ "---",
1626
+ stdout,
1627
+ stderr,
1628
+ "---",
1629
+ "",
1623
1630
  "Try running the following command to debug the issue (you are probably under a restricted network and you need to configure your proxy):",
1624
1631
  `cd ${keycloakifyBuildCacheDirPath} && ${mvnBuildCmd}`
1625
1632
  ].join("\n"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.9.6",
3
+ "version": "11.9.8",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -227,9 +227,9 @@ export async function buildJar(params: {
227
227
  child_process.exec(
228
228
  mvnBuildCmd,
229
229
  { cwd: keycloakifyBuildCacheDirPath },
230
- error => {
230
+ (error, stdout, stderr) => {
231
231
  if (error !== null) {
232
- console.error(
232
+ console.log(
233
233
  [
234
234
  `Build jar failed: ${JSON.stringify(
235
235
  {
@@ -240,6 +240,13 @@ export async function buildJar(params: {
240
240
  null,
241
241
  2
242
242
  )}`,
243
+ "",
244
+ "Output of the `mvn clean install` command:",
245
+ "---",
246
+ stdout,
247
+ stderr,
248
+ "---",
249
+ "",
243
250
  "Try running the following command to debug the issue (you are probably under a restricted network and you need to configure your proxy):",
244
251
  `cd ${keycloakifyBuildCacheDirPath} && ${mvnBuildCmd}`
245
252
  ].join("\n")
@@ -199,6 +199,20 @@ function decodeHtmlEntities(htmlStr){
199
199
  xKeycloakify.pageId == "error.ftl" &&
200
200
  areSamePath(path, ["realm"]) &&
201
201
  !["name", "displayName", "displayNameHtml", "internationalizationEnabled", "registrationEmailAsUsername" ]?seq_contains(key)
202
+ ) || (
203
+ <#-- Fix for StackOverflowError on terms.ftl with incomplete user profiles (e.g., X/Twitter IdP) -->
204
+ <#-- These properties create circular references: realm->masterAdminClient->realm, etc. -->
205
+ <#-- See: https://github.com/keycloakify/keycloakify/issues/658 -->
206
+ xKeycloakify.pageId == "terms.ftl" && (
207
+ key == "masterAdminClient" ||
208
+ key == "delegateForUpdate" ||
209
+ key == "keycloakSession" ||
210
+ key == "entity" ||
211
+ key == "realmModel" ||
212
+ key == "userModel" ||
213
+ (key == "defaultRole" && path?size > 2) ||
214
+ (key == "container" && path?size > 2)
215
+ )
202
216
  ) || (
203
217
  xKeycloakify.pageId == "applications.ftl" &&
204
218
  (