keycloakify 11.3.5 → 11.3.7-rc.0
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 +25 -3
- package/bin/526.index.js +6 -4
- package/bin/main.js +14 -6
- package/package.json +1 -1
- package/src/bin/shared/buildContext.ts +15 -6
- package/src/bin/start-keycloak/start-keycloak.ts +8 -4
- package/vite-plugin/index.js +14 -6
package/README.md
CHANGED
@@ -50,7 +50,7 @@ Keycloakify is fully compatible with Keycloak from version 11 to 26...[and beyon
|
|
50
50
|
|
51
51
|
## Sponsors
|
52
52
|
|
53
|
-
|
53
|
+
Project backers, we trust and recommend their services.
|
54
54
|
|
55
55
|
<br/>
|
56
56
|
|
@@ -62,7 +62,29 @@ Friends for the project, we trust and recommend their services.
|
|
62
62
|
|
63
63
|
<div align="center">
|
64
64
|
|
65
|
-

|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
<br/>
|
70
|
+
|
71
|
+
<p align="center">
|
72
|
+
<i><a href="https://phasetwo.io/"><strong>Keycloak on Steroids as a Service</strong></a> - Keycloak community contributors of popular <a href="https://github.com/p2-inc#our-extensions-">extensions</a> providing free and dedicated <a href="https://phasetwo.io/hosting/">Keycloak hosting</a> and enterprise <a href="https://phasetwo.io/support/">Keycloak support</a> to businesses of all sizes.</i>
|
73
|
+
</p>
|
74
|
+
|
75
|
+
<br/>
|
76
|
+
<br/>
|
77
|
+
<br/>
|
78
|
+
|
79
|
+
<div align="center">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div align="center">
|
86
|
+
|
87
|
+

|
66
88
|
|
67
89
|
</div>
|
68
90
|
|
@@ -87,7 +109,7 @@ Friends for the project, we trust and recommend their services.
|
|
87
109
|
</div>
|
88
110
|
|
89
111
|
<p align="center">
|
90
|
-
<a href="https://cloud-iam.com/?mtm_campaign=keycloakify-deal&mtm_source=keycloakify-github"><strong>Managed Keycloak Provider</strong> - With Cloud-IAM powering your Keycloak clusters, you can sleep easy knowing you've got the software and the experts you need for operational excellence.
|
112
|
+
<a href="https://cloud-iam.com/?mtm_campaign=keycloakify-deal&mtm_source=keycloakify-github"><strong>Managed Keycloak Provider</strong> - With Cloud-IAM powering your Keycloak clusters, you can sleep easy knowing you've got the software and the experts you need for operational excellence. Cloud IAM is a french company. </a>
|
91
113
|
<br/>
|
92
114
|
Use code <code>keycloakify5</code> at checkout for a 5% discount.
|
93
115
|
</p>
|
package/bin/526.index.js
CHANGED
@@ -442,10 +442,10 @@ async function command(params) {
|
|
442
442
|
...(realmJsonFilePath === undefined
|
443
443
|
? []
|
444
444
|
: [
|
445
|
-
`-v${SPACE_PLACEHOLDER}"
|
445
|
+
`-v${SPACE_PLACEHOLDER}"${realmJsonFilePath}":/opt/keycloak/data/import/myrealm-realm.json`
|
446
446
|
]),
|
447
|
-
`-v${SPACE_PLACEHOLDER}"
|
448
|
-
...extensionJarFilePaths.map(jarFilePath => `-v${SPACE_PLACEHOLDER}"
|
447
|
+
`-v${SPACE_PLACEHOLDER}"${jarFilePath_cacheDir}":/opt/keycloak/providers/keycloak-theme.jar`,
|
448
|
+
...extensionJarFilePaths.map(jarFilePath => `-v${SPACE_PLACEHOLDER}"${jarFilePath}":/opt/keycloak/providers/${(0,external_path_.basename)(jarFilePath)}`),
|
449
449
|
...(keycloakMajorVersionNumber <= 20
|
450
450
|
? [`-e${SPACE_PLACEHOLDER}JAVA_OPTS=-Dkeycloak.profile=preview`]
|
451
451
|
: []),
|
@@ -459,7 +459,7 @@ async function command(params) {
|
|
459
459
|
localDirPath: (0,external_path_.join)(buildContext.keycloakifyBuildDirPath, "theme", themeName),
|
460
460
|
containerDirPath: `/opt/keycloak/themes/${themeName}`
|
461
461
|
}))
|
462
|
-
.map(({ localDirPath, containerDirPath }) => `-v${SPACE_PLACEHOLDER}"
|
462
|
+
.map(({ localDirPath, containerDirPath }) => `-v${SPACE_PLACEHOLDER}"${localDirPath}":${containerDirPath}:rw`),
|
463
463
|
...buildContext.environmentVariables
|
464
464
|
.map(({ name }) => ({ name, envValue: process.env[name] }))
|
465
465
|
.map(({ name, envValue }) => envValue === undefined ? undefined : { name, envValue })
|
@@ -477,6 +477,8 @@ async function command(params) {
|
|
477
477
|
buildContext.startKeycloakOptions.keycloakExtraArgs.join(SPACE_PLACEHOLDER)
|
478
478
|
])
|
479
479
|
];
|
480
|
+
console.log("DEBUG issue #694");
|
481
|
+
console.log(JSON.stringify(dockerRunArgs, null, 2));
|
480
482
|
console.log(source_default().blue([
|
481
483
|
`$ docker run \\`,
|
482
484
|
...dockerRunArgs
|
package/bin/main.js
CHANGED
@@ -15775,6 +15775,14 @@ function getBuildContext(params) {
|
|
15775
15775
|
}
|
15776
15776
|
return themeNames;
|
15777
15777
|
})();
|
15778
|
+
const relativePathsCwd = (() => {
|
15779
|
+
switch (bundler) {
|
15780
|
+
case "vite":
|
15781
|
+
return projectDirPath;
|
15782
|
+
case "webpack":
|
15783
|
+
return (0,external_path_.dirname)(packageJsonFilePath);
|
15784
|
+
}
|
15785
|
+
})();
|
15778
15786
|
const projectBuildDirPath = (() => {
|
15779
15787
|
webpack: {
|
15780
15788
|
if (bundler !== "webpack") {
|
@@ -15784,7 +15792,7 @@ function getBuildContext(params) {
|
|
15784
15792
|
if (parsedPackageJson.keycloakify.projectBuildDirPath !== undefined) {
|
15785
15793
|
return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
15786
15794
|
pathIsh: parsedPackageJson.keycloakify.projectBuildDirPath,
|
15787
|
-
cwd:
|
15795
|
+
cwd: relativePathsCwd
|
15788
15796
|
});
|
15789
15797
|
}
|
15790
15798
|
return (0,external_path_.join)(projectDirPath, "build");
|
@@ -15814,7 +15822,7 @@ function getBuildContext(params) {
|
|
15814
15822
|
if (buildOptions.keycloakifyBuildDirPath !== undefined) {
|
15815
15823
|
return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
15816
15824
|
pathIsh: buildOptions.keycloakifyBuildDirPath,
|
15817
|
-
cwd:
|
15825
|
+
cwd: relativePathsCwd
|
15818
15826
|
});
|
15819
15827
|
}
|
15820
15828
|
return (0,external_path_.join)(projectDirPath, (resolvedViteConfig === null || resolvedViteConfig === void 0 ? void 0 : resolvedViteConfig.buildDir) === undefined
|
@@ -15836,7 +15844,7 @@ function getBuildContext(params) {
|
|
15836
15844
|
if (parsedPackageJson.keycloakify.publicDirPath !== undefined) {
|
15837
15845
|
return (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
15838
15846
|
pathIsh: parsedPackageJson.keycloakify.publicDirPath,
|
15839
|
-
cwd:
|
15847
|
+
cwd: relativePathsCwd
|
15840
15848
|
});
|
15841
15849
|
}
|
15842
15850
|
return (0,external_path_.join)(projectDirPath, "public");
|
@@ -15885,7 +15893,7 @@ function getBuildContext(params) {
|
|
15885
15893
|
(0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
15886
15894
|
pathIsh: parsedPackageJson.keycloakify
|
15887
15895
|
.staticDirPathInProjectBuildDirPath,
|
15888
|
-
cwd:
|
15896
|
+
cwd: relativePathsCwd
|
15889
15897
|
});
|
15890
15898
|
}
|
15891
15899
|
return (0,external_path_.join)(projectBuildDirPath, "static");
|
@@ -16099,7 +16107,7 @@ function getBuildContext(params) {
|
|
16099
16107
|
type: "path",
|
16100
16108
|
path: (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
16101
16109
|
pathIsh: urlOrPath,
|
16102
|
-
cwd:
|
16110
|
+
cwd: relativePathsCwd
|
16103
16111
|
})
|
16104
16112
|
};
|
16105
16113
|
}),
|
@@ -16107,7 +16115,7 @@ function getBuildContext(params) {
|
|
16107
16115
|
? undefined
|
16108
16116
|
: (0,getAbsoluteAndInOsFormatPath/* getAbsoluteAndInOsFormatPath */.c)({
|
16109
16117
|
pathIsh: buildOptions.startKeycloakOptions.realmJsonFilePath,
|
16110
|
-
cwd:
|
16118
|
+
cwd: relativePathsCwd
|
16111
16119
|
}),
|
16112
16120
|
port: (_o = buildOptions.startKeycloakOptions) === null || _o === void 0 ? void 0 : _o.port
|
16113
16121
|
}
|
package/package.json
CHANGED
@@ -508,6 +508,15 @@ export function getBuildContext(params: {
|
|
508
508
|
return themeNames;
|
509
509
|
})();
|
510
510
|
|
511
|
+
const relativePathsCwd = (() => {
|
512
|
+
switch (bundler) {
|
513
|
+
case "vite":
|
514
|
+
return projectDirPath;
|
515
|
+
case "webpack":
|
516
|
+
return pathDirname(packageJsonFilePath);
|
517
|
+
}
|
518
|
+
})();
|
519
|
+
|
511
520
|
const projectBuildDirPath = (() => {
|
512
521
|
webpack: {
|
513
522
|
if (bundler !== "webpack") {
|
@@ -519,7 +528,7 @@ export function getBuildContext(params: {
|
|
519
528
|
if (parsedPackageJson.keycloakify.projectBuildDirPath !== undefined) {
|
520
529
|
return getAbsoluteAndInOsFormatPath({
|
521
530
|
pathIsh: parsedPackageJson.keycloakify.projectBuildDirPath,
|
522
|
-
cwd:
|
531
|
+
cwd: relativePathsCwd
|
523
532
|
});
|
524
533
|
}
|
525
534
|
|
@@ -563,7 +572,7 @@ export function getBuildContext(params: {
|
|
563
572
|
if (buildOptions.keycloakifyBuildDirPath !== undefined) {
|
564
573
|
return getAbsoluteAndInOsFormatPath({
|
565
574
|
pathIsh: buildOptions.keycloakifyBuildDirPath,
|
566
|
-
cwd:
|
575
|
+
cwd: relativePathsCwd
|
567
576
|
});
|
568
577
|
}
|
569
578
|
|
@@ -592,7 +601,7 @@ export function getBuildContext(params: {
|
|
592
601
|
if (parsedPackageJson.keycloakify.publicDirPath !== undefined) {
|
593
602
|
return getAbsoluteAndInOsFormatPath({
|
594
603
|
pathIsh: parsedPackageJson.keycloakify.publicDirPath,
|
595
|
-
cwd:
|
604
|
+
cwd: relativePathsCwd
|
596
605
|
});
|
597
606
|
}
|
598
607
|
|
@@ -664,7 +673,7 @@ export function getBuildContext(params: {
|
|
664
673
|
pathIsh:
|
665
674
|
parsedPackageJson.keycloakify
|
666
675
|
.staticDirPathInProjectBuildDirPath,
|
667
|
-
cwd:
|
676
|
+
cwd: relativePathsCwd
|
668
677
|
});
|
669
678
|
}
|
670
679
|
|
@@ -992,7 +1001,7 @@ export function getBuildContext(params: {
|
|
992
1001
|
type: "path",
|
993
1002
|
path: getAbsoluteAndInOsFormatPath({
|
994
1003
|
pathIsh: urlOrPath,
|
995
|
-
cwd:
|
1004
|
+
cwd: relativePathsCwd
|
996
1005
|
})
|
997
1006
|
};
|
998
1007
|
}
|
@@ -1002,7 +1011,7 @@ export function getBuildContext(params: {
|
|
1002
1011
|
? undefined
|
1003
1012
|
: getAbsoluteAndInOsFormatPath({
|
1004
1013
|
pathIsh: buildOptions.startKeycloakOptions.realmJsonFilePath,
|
1005
|
-
cwd:
|
1014
|
+
cwd: relativePathsCwd
|
1006
1015
|
}),
|
1007
1016
|
port: buildOptions.startKeycloakOptions?.port
|
1008
1017
|
}
|
@@ -396,12 +396,12 @@ export async function command(params: {
|
|
396
396
|
...(realmJsonFilePath === undefined
|
397
397
|
? []
|
398
398
|
: [
|
399
|
-
`-v${SPACE_PLACEHOLDER}"
|
399
|
+
`-v${SPACE_PLACEHOLDER}"${realmJsonFilePath}":/opt/keycloak/data/import/myrealm-realm.json`
|
400
400
|
]),
|
401
|
-
`-v${SPACE_PLACEHOLDER}"
|
401
|
+
`-v${SPACE_PLACEHOLDER}"${jarFilePath_cacheDir}":/opt/keycloak/providers/keycloak-theme.jar`,
|
402
402
|
...extensionJarFilePaths.map(
|
403
403
|
jarFilePath =>
|
404
|
-
`-v${SPACE_PLACEHOLDER}"
|
404
|
+
`-v${SPACE_PLACEHOLDER}"${jarFilePath}":/opt/keycloak/providers/${pathBasename(jarFilePath)}`
|
405
405
|
),
|
406
406
|
...(keycloakMajorVersionNumber <= 20
|
407
407
|
? [`-e${SPACE_PLACEHOLDER}JAVA_OPTS=-Dkeycloak.profile=preview`]
|
@@ -424,7 +424,7 @@ export async function command(params: {
|
|
424
424
|
}))
|
425
425
|
.map(
|
426
426
|
({ localDirPath, containerDirPath }) =>
|
427
|
-
`-v${SPACE_PLACEHOLDER}"
|
427
|
+
`-v${SPACE_PLACEHOLDER}"${localDirPath}":${containerDirPath}:rw`
|
428
428
|
),
|
429
429
|
...buildContext.environmentVariables
|
430
430
|
.map(({ name }) => ({ name, envValue: process.env[name] }))
|
@@ -451,6 +451,10 @@ export async function command(params: {
|
|
451
451
|
])
|
452
452
|
];
|
453
453
|
|
454
|
+
console.log("DEBUG issue #694");
|
455
|
+
|
456
|
+
console.log(JSON.stringify(dockerRunArgs, null, 2));
|
457
|
+
|
454
458
|
console.log(
|
455
459
|
chalk.blue(
|
456
460
|
[
|
package/vite-plugin/index.js
CHANGED
@@ -4633,6 +4633,14 @@ function getBuildContext(params) {
|
|
4633
4633
|
}
|
4634
4634
|
return themeNames;
|
4635
4635
|
})();
|
4636
|
+
const relativePathsCwd = (() => {
|
4637
|
+
switch (bundler) {
|
4638
|
+
case "vite":
|
4639
|
+
return projectDirPath;
|
4640
|
+
case "webpack":
|
4641
|
+
return (0,external_path_.dirname)(packageJsonFilePath);
|
4642
|
+
}
|
4643
|
+
})();
|
4636
4644
|
const projectBuildDirPath = (() => {
|
4637
4645
|
webpack: {
|
4638
4646
|
if (bundler !== "webpack") {
|
@@ -4642,7 +4650,7 @@ function getBuildContext(params) {
|
|
4642
4650
|
if (parsedPackageJson.keycloakify.projectBuildDirPath !== undefined) {
|
4643
4651
|
return getAbsoluteAndInOsFormatPath({
|
4644
4652
|
pathIsh: parsedPackageJson.keycloakify.projectBuildDirPath,
|
4645
|
-
cwd:
|
4653
|
+
cwd: relativePathsCwd
|
4646
4654
|
});
|
4647
4655
|
}
|
4648
4656
|
return (0,external_path_.join)(projectDirPath, "build");
|
@@ -4672,7 +4680,7 @@ function getBuildContext(params) {
|
|
4672
4680
|
if (buildOptions.keycloakifyBuildDirPath !== undefined) {
|
4673
4681
|
return getAbsoluteAndInOsFormatPath({
|
4674
4682
|
pathIsh: buildOptions.keycloakifyBuildDirPath,
|
4675
|
-
cwd:
|
4683
|
+
cwd: relativePathsCwd
|
4676
4684
|
});
|
4677
4685
|
}
|
4678
4686
|
return (0,external_path_.join)(projectDirPath, (resolvedViteConfig === null || resolvedViteConfig === void 0 ? void 0 : resolvedViteConfig.buildDir) === undefined
|
@@ -4694,7 +4702,7 @@ function getBuildContext(params) {
|
|
4694
4702
|
if (parsedPackageJson.keycloakify.publicDirPath !== undefined) {
|
4695
4703
|
return getAbsoluteAndInOsFormatPath({
|
4696
4704
|
pathIsh: parsedPackageJson.keycloakify.publicDirPath,
|
4697
|
-
cwd:
|
4705
|
+
cwd: relativePathsCwd
|
4698
4706
|
});
|
4699
4707
|
}
|
4700
4708
|
return (0,external_path_.join)(projectDirPath, "public");
|
@@ -4743,7 +4751,7 @@ function getBuildContext(params) {
|
|
4743
4751
|
getAbsoluteAndInOsFormatPath({
|
4744
4752
|
pathIsh: parsedPackageJson.keycloakify
|
4745
4753
|
.staticDirPathInProjectBuildDirPath,
|
4746
|
-
cwd:
|
4754
|
+
cwd: relativePathsCwd
|
4747
4755
|
});
|
4748
4756
|
}
|
4749
4757
|
return (0,external_path_.join)(projectBuildDirPath, "static");
|
@@ -4957,7 +4965,7 @@ function getBuildContext(params) {
|
|
4957
4965
|
type: "path",
|
4958
4966
|
path: getAbsoluteAndInOsFormatPath({
|
4959
4967
|
pathIsh: urlOrPath,
|
4960
|
-
cwd:
|
4968
|
+
cwd: relativePathsCwd
|
4961
4969
|
})
|
4962
4970
|
};
|
4963
4971
|
}),
|
@@ -4965,7 +4973,7 @@ function getBuildContext(params) {
|
|
4965
4973
|
? undefined
|
4966
4974
|
: getAbsoluteAndInOsFormatPath({
|
4967
4975
|
pathIsh: buildOptions.startKeycloakOptions.realmJsonFilePath,
|
4968
|
-
cwd:
|
4976
|
+
cwd: relativePathsCwd
|
4969
4977
|
}),
|
4970
4978
|
port: (_o = buildOptions.startKeycloakOptions) === null || _o === void 0 ? void 0 : _o.port
|
4971
4979
|
}
|