keycloakify 11.4.5 → 11.5.1

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.
Files changed (44) hide show
  1. package/bin/375.index.js +4089 -0
  2. package/bin/{20.index.js → 490.index.js} +378 -56
  3. package/bin/{36.index.js → 503.index.js} +53 -2
  4. package/bin/{450.index.js → 525.index.js} +2 -4085
  5. package/bin/653.index.js +108 -110
  6. package/bin/682.index.js +1987 -0
  7. package/bin/735.index.js +107 -109
  8. package/bin/921.index.js +1 -1
  9. package/bin/main.js +8 -2
  10. package/bin/shared/constants.d.ts +3 -0
  11. package/bin/shared/constants.js +3 -0
  12. package/bin/shared/constants.js.map +1 -1
  13. package/bin/start-keycloak/getSupportedDockerImageTags.d.ts +8 -0
  14. package/bin/start-keycloak/realmConfig/ParsedRealmJson.d.ts +45 -0
  15. package/bin/start-keycloak/realmConfig/defaultConfig/defaultConfig.d.ts +8 -0
  16. package/bin/start-keycloak/realmConfig/defaultConfig/index.d.ts +1 -0
  17. package/bin/start-keycloak/realmConfig/dumpContainerConfig.d.ts +9 -0
  18. package/bin/start-keycloak/realmConfig/index.d.ts +1 -0
  19. package/bin/start-keycloak/realmConfig/prepareRealmConfig.d.ts +15 -0
  20. package/bin/start-keycloak/realmConfig/realmConfig.d.ts +16 -0
  21. package/package.json +31 -14
  22. package/src/bin/shared/constants.ts +6 -0
  23. package/src/bin/start-keycloak/getSupportedDockerImageTags.ts +230 -0
  24. package/src/bin/start-keycloak/keycloakify-logging-1.0.3.jar +0 -0
  25. package/src/bin/start-keycloak/realmConfig/ParsedRealmJson.ts +136 -0
  26. package/src/bin/start-keycloak/realmConfig/defaultConfig/defaultConfig.ts +75 -0
  27. package/src/bin/start-keycloak/realmConfig/defaultConfig/index.ts +1 -0
  28. package/src/bin/start-keycloak/{myrealm-realm-18.json → realmConfig/defaultConfig/realm-kc-18.json} +123 -60
  29. package/src/bin/start-keycloak/{myrealm-realm-19.json → realmConfig/defaultConfig/realm-kc-19.json} +81 -41
  30. package/src/bin/start-keycloak/{myrealm-realm-20.json → realmConfig/defaultConfig/realm-kc-20.json} +83 -42
  31. package/src/bin/start-keycloak/{myrealm-realm-21.json → realmConfig/defaultConfig/realm-kc-21.json} +58 -17
  32. package/src/bin/start-keycloak/{myrealm-realm-23.json → realmConfig/defaultConfig/realm-kc-23.json} +64 -20
  33. package/src/bin/start-keycloak/{myrealm-realm-24.json → realmConfig/defaultConfig/realm-kc-24.json} +63 -19
  34. package/src/bin/start-keycloak/{myrealm-realm-25.json → realmConfig/defaultConfig/realm-kc-25.json} +75 -20
  35. package/src/bin/start-keycloak/{myrealm-realm-26.json → realmConfig/defaultConfig/realm-kc-26.json} +103 -19
  36. package/src/bin/start-keycloak/realmConfig/dumpContainerConfig.ts +194 -0
  37. package/src/bin/start-keycloak/realmConfig/index.ts +1 -0
  38. package/src/bin/start-keycloak/realmConfig/prepareRealmConfig.ts +365 -0
  39. package/src/bin/start-keycloak/realmConfig/realmConfig.ts +159 -0
  40. package/src/bin/start-keycloak/start-keycloak.ts +160 -184
  41. package/src/bin/start-keycloak/startViteDevServer.ts +1 -0
  42. package/vite-plugin/index.js +6 -0
  43. package/bin/392.index.js +0 -740
  44. package/bin/932.index.js +0 -327
@@ -73,7 +73,7 @@
73
73
  "composites": {
74
74
  "realm": ["offline_access", "uma_authorization"],
75
75
  "client": {
76
- "account": ["delete-account", "view-profile", "manage-account"]
76
+ "account": ["view-profile", "manage-account", "delete-account"]
77
77
  }
78
78
  },
79
79
  "clientRole": false,
@@ -435,13 +435,46 @@
435
435
  "type": "password",
436
436
  "userLabel": "My password",
437
437
  "createdDate": 1716214710762,
438
- "secretData": "{\"value\":\"OaI4sKqQn+NZtS6N/bcqoZ8Q+ucpBby1n4XmzVmioKw=\",\"salt\":\"temixVCSbpA7Genml2KTAw==\",\"additionalParameters\":{}}",
438
+ "secretData": "{\"value\":\"QzJjOdXU0L9Pdxdx1V5xUs7BY9beGlmN8NpR2qiWxbkjrQ434Q1GwSiJKekZQ/zrLDtNZ7sAbVu+SS+XIe9Zaw==\",\"salt\":\"x8cABpa0Hk/nJ2BPKdFXTg==\",\"additionalParameters\":{}}",
439
439
  "credentialData": "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\",\"additionalParameters\":{}}"
440
440
  }
441
441
  ],
442
442
  "disableableCredentialTypes": [],
443
443
  "requiredActions": [],
444
444
  "realmRoles": ["default-roles-myrealm"],
445
+ "clientRoles": {
446
+ "realm-management": [
447
+ "create-client",
448
+ "view-identity-providers",
449
+ "manage-realm",
450
+ "query-groups",
451
+ "manage-clients",
452
+ "query-users",
453
+ "realm-admin",
454
+ "view-authorization",
455
+ "view-events",
456
+ "view-clients",
457
+ "view-realm",
458
+ "manage-events",
459
+ "query-realms",
460
+ "query-clients",
461
+ "manage-identity-providers",
462
+ "manage-users",
463
+ "view-users",
464
+ "impersonation",
465
+ "manage-authorization"
466
+ ],
467
+ "broker": ["read-token"],
468
+ "account": [
469
+ "view-profile",
470
+ "manage-account-links",
471
+ "view-applications",
472
+ "manage-consent",
473
+ "delete-account",
474
+ "manage-account",
475
+ "view-consent"
476
+ ]
477
+ },
445
478
  "notBefore": 0,
446
479
  "groups": []
447
480
  }
@@ -507,8 +540,12 @@
507
540
  "enabled": true,
508
541
  "alwaysDisplayInConsole": false,
509
542
  "clientAuthenticatorType": "client-secret",
510
- "redirectUris": ["/realms/myrealm/account/*"],
511
- "webOrigins": [],
543
+ "redirectUris": [
544
+ "http://localhost*",
545
+ "http://127.0.0.1*",
546
+ "/realms/myrealm/account/*"
547
+ ],
548
+ "webOrigins": ["*"],
512
549
  "notBefore": 0,
513
550
  "bearerOnly": false,
514
551
  "consentRequired": false,
@@ -643,7 +680,6 @@
643
680
  "attributes": {
644
681
  "oidc.ciba.grant.enabled": "false",
645
682
  "backchannel.logout.session.required": "true",
646
- "login_theme": "keycloakify-starter",
647
683
  "post.logout.redirect.uris": "+",
648
684
  "display.on.consent.screen": "false",
649
685
  "oauth2.device.authorization.grant.enabled": "false",
@@ -704,8 +740,12 @@
704
740
  "enabled": true,
705
741
  "alwaysDisplayInConsole": false,
706
742
  "clientAuthenticatorType": "client-secret",
707
- "redirectUris": ["/admin/myrealm/console/*"],
708
- "webOrigins": ["+"],
743
+ "redirectUris": [
744
+ "http://localhost*",
745
+ "http://127.0.0.1*",
746
+ "/admin/myrealm/console/*"
747
+ ],
748
+ "webOrigins": ["*"],
709
749
  "notBefore": 0,
710
750
  "bearerOnly": false,
711
751
  "consentRequired": false,
@@ -1284,11 +1324,11 @@
1284
1324
  },
1285
1325
  "smtpServer": {},
1286
1326
  "loginTheme": "keycloakify-starter",
1287
- "accountTheme": "keycloakify-starter",
1327
+ "accountTheme": "",
1288
1328
  "adminTheme": "",
1289
1329
  "emailTheme": "",
1290
1330
  "eventsEnabled": false,
1291
- "eventsListeners": ["jboss-logging"],
1331
+ "eventsListeners": ["keycloakify-logging", "jboss-logging"],
1292
1332
  "enabledEventTypes": [],
1293
1333
  "adminEventsEnabled": false,
1294
1334
  "adminEventsDetailsEnabled": false,
@@ -1304,14 +1344,14 @@
1304
1344
  "subComponents": {},
1305
1345
  "config": {
1306
1346
  "allowed-protocol-mapper-types": [
1347
+ "saml-user-property-mapper",
1348
+ "saml-user-attribute-mapper",
1307
1349
  "oidc-full-name-mapper",
1308
- "oidc-sha256-pairwise-sub-mapper",
1309
1350
  "oidc-usermodel-property-mapper",
1310
- "oidc-address-mapper",
1311
- "saml-user-property-mapper",
1312
1351
  "oidc-usermodel-attribute-mapper",
1313
- "saml-user-attribute-mapper",
1314
- "saml-role-list-mapper"
1352
+ "oidc-address-mapper",
1353
+ "saml-role-list-mapper",
1354
+ "oidc-sha256-pairwise-sub-mapper"
1315
1355
  ]
1316
1356
  }
1317
1357
  },
@@ -1360,14 +1400,14 @@
1360
1400
  "subComponents": {},
1361
1401
  "config": {
1362
1402
  "allowed-protocol-mapper-types": [
1363
- "saml-user-property-mapper",
1364
- "saml-user-attribute-mapper",
1365
- "oidc-full-name-mapper",
1366
1403
  "oidc-sha256-pairwise-sub-mapper",
1367
1404
  "oidc-usermodel-attribute-mapper",
1368
- "oidc-address-mapper",
1405
+ "oidc-usermodel-property-mapper",
1369
1406
  "saml-role-list-mapper",
1370
- "oidc-usermodel-property-mapper"
1407
+ "oidc-full-name-mapper",
1408
+ "saml-user-property-mapper",
1409
+ "oidc-address-mapper",
1410
+ "saml-user-attribute-mapper"
1371
1411
  ]
1372
1412
  }
1373
1413
  },
@@ -1485,7 +1525,7 @@
1485
1525
  "defaultLocale": "en",
1486
1526
  "authenticationFlows": [
1487
1527
  {
1488
- "id": "e134634e-f219-4df4-867c-8110688d8e56",
1528
+ "id": "1f4d4e13-1591-4751-8985-17886a8c98a9",
1489
1529
  "alias": "Account verification options",
1490
1530
  "description": "Method with which to verity the existing account",
1491
1531
  "providerId": "basic-flow",
@@ -1511,7 +1551,7 @@
1511
1551
  ]
1512
1552
  },
1513
1553
  {
1514
- "id": "a611a8eb-9626-4aa4-8b54-ee565ea6e5dc",
1554
+ "id": "126f07c3-1bcb-4a02-bf16-bb44674bf55d",
1515
1555
  "alias": "Authentication Options",
1516
1556
  "description": "Authentication options.",
1517
1557
  "providerId": "basic-flow",
@@ -1545,7 +1585,7 @@
1545
1585
  ]
1546
1586
  },
1547
1587
  {
1548
- "id": "d87cbb31-5c69-45c8-888d-f9649ebbbf97",
1588
+ "id": "eb3a08c8-5f99-49b6-b02b-16b62571f273",
1549
1589
  "alias": "Browser - Conditional OTP",
1550
1590
  "description": "Flow to determine if the OTP is required for the authentication",
1551
1591
  "providerId": "basic-flow",
@@ -1571,7 +1611,7 @@
1571
1611
  ]
1572
1612
  },
1573
1613
  {
1574
- "id": "752ba282-a369-4592-92e8-b4287192dbbf",
1614
+ "id": "3dc19838-5025-4bbb-b569-b574bd5a8d90",
1575
1615
  "alias": "Direct Grant - Conditional OTP",
1576
1616
  "description": "Flow to determine if the OTP is required for the authentication",
1577
1617
  "providerId": "basic-flow",
@@ -1597,7 +1637,7 @@
1597
1637
  ]
1598
1638
  },
1599
1639
  {
1600
- "id": "2349282e-40ff-431a-984d-53911511e3d3",
1640
+ "id": "70d6fd40-d740-4dae-b0e6-350f8e9d4a1c",
1601
1641
  "alias": "First broker login - Conditional OTP",
1602
1642
  "description": "Flow to determine if the OTP is required for the authentication",
1603
1643
  "providerId": "basic-flow",
@@ -1623,7 +1663,7 @@
1623
1663
  ]
1624
1664
  },
1625
1665
  {
1626
- "id": "4ff5463d-26d9-4219-ba85-41464401098f",
1666
+ "id": "6e24dcb3-5818-483c-8e44-883858171901",
1627
1667
  "alias": "Handle Existing Account",
1628
1668
  "description": "Handle what to do if there is existing account with same email/username like authenticated identity provider",
1629
1669
  "providerId": "basic-flow",
@@ -1649,7 +1689,7 @@
1649
1689
  ]
1650
1690
  },
1651
1691
  {
1652
- "id": "87bb6c6d-cca8-4832-b5ab-67ecb9454a42",
1692
+ "id": "ac6254cd-403b-457b-b308-22a2a0e4f99d",
1653
1693
  "alias": "Reset - Conditional OTP",
1654
1694
  "description": "Flow to determine if the OTP should be reset or not. Set to REQUIRED to force.",
1655
1695
  "providerId": "basic-flow",
@@ -1675,7 +1715,7 @@
1675
1715
  ]
1676
1716
  },
1677
1717
  {
1678
- "id": "1fc3d028-0e0a-43a4-aaf9-ba7f7d60b409",
1718
+ "id": "485e74e6-9b3e-4b2c-a9b9-927802dc4f06",
1679
1719
  "alias": "User creation or linking",
1680
1720
  "description": "Flow for the existing/non-existing user alternatives",
1681
1721
  "providerId": "basic-flow",
@@ -1702,7 +1742,7 @@
1702
1742
  ]
1703
1743
  },
1704
1744
  {
1705
- "id": "036aae59-641f-4799-9124-c7e5034af6c1",
1745
+ "id": "ff9bb879-1d6a-4d1c-9836-1e4fab6f8997",
1706
1746
  "alias": "Verify Existing Account by Re-authentication",
1707
1747
  "description": "Reauthentication of existing account",
1708
1748
  "providerId": "basic-flow",
@@ -1728,7 +1768,7 @@
1728
1768
  ]
1729
1769
  },
1730
1770
  {
1731
- "id": "2e8b9f28-93b8-4368-84b0-1a8326daafe0",
1771
+ "id": "af8b2470-d581-401c-9984-762b966ebcc2",
1732
1772
  "alias": "browser",
1733
1773
  "description": "browser based authentication",
1734
1774
  "providerId": "basic-flow",
@@ -1770,7 +1810,7 @@
1770
1810
  ]
1771
1811
  },
1772
1812
  {
1773
- "id": "0b826105-8493-45ce-87b3-7d917d190b39",
1813
+ "id": "414dbda4-eb3f-4baa-b23a-d3423af1eae6",
1774
1814
  "alias": "clients",
1775
1815
  "description": "Base authentication for clients",
1776
1816
  "providerId": "client-flow",
@@ -1812,7 +1852,7 @@
1812
1852
  ]
1813
1853
  },
1814
1854
  {
1815
- "id": "bf6d9edd-48d8-4392-bbc8-4b17a6866074",
1855
+ "id": "1cae0c4b-8dfb-4f5d-a781-e74d0a13c940",
1816
1856
  "alias": "direct grant",
1817
1857
  "description": "OpenID Connect Resource Owner Grant",
1818
1858
  "providerId": "basic-flow",
@@ -1846,7 +1886,7 @@
1846
1886
  ]
1847
1887
  },
1848
1888
  {
1849
- "id": "97e31722-dd11-42be-aa99-88788fa2dde6",
1889
+ "id": "e798b655-7d85-4b6b-aee7-1448a3e1e0ea",
1850
1890
  "alias": "docker auth",
1851
1891
  "description": "Used by Docker clients to authenticate against the IDP",
1852
1892
  "providerId": "basic-flow",
@@ -1864,7 +1904,7 @@
1864
1904
  ]
1865
1905
  },
1866
1906
  {
1867
- "id": "3f45cf34-231f-4ea1-8e58-d636c451a76b",
1907
+ "id": "eb94b723-1041-426a-87bf-f7b4bd2f485d",
1868
1908
  "alias": "first broker login",
1869
1909
  "description": "Actions taken after first broker login with identity provider account, which is not yet linked to any Keycloak account",
1870
1910
  "providerId": "basic-flow",
@@ -1891,7 +1931,7 @@
1891
1931
  ]
1892
1932
  },
1893
1933
  {
1894
- "id": "9bef2f7c-f989-4871-aaa7-18e2cfa73f22",
1934
+ "id": "452d1d5f-7632-44d7-bc89-77ff2b209b3e",
1895
1935
  "alias": "forms",
1896
1936
  "description": "Username, password, otp and other auth forms.",
1897
1937
  "providerId": "basic-flow",
@@ -1917,7 +1957,7 @@
1917
1957
  ]
1918
1958
  },
1919
1959
  {
1920
- "id": "0bfaa325-acde-4443-8bd8-1dc2ae759c5f",
1960
+ "id": "7c1b9e8f-6b57-49d1-a9a7-494862f93c0f",
1921
1961
  "alias": "http challenge",
1922
1962
  "description": "An authentication flow based on challenge-response HTTP Authentication Schemes",
1923
1963
  "providerId": "basic-flow",
@@ -1943,7 +1983,7 @@
1943
1983
  ]
1944
1984
  },
1945
1985
  {
1946
- "id": "37ddbe8c-abf3-4654-bd6d-ffabbeefbb98",
1986
+ "id": "2b38f34a-1739-499e-bb24-1dff96f32009",
1947
1987
  "alias": "registration",
1948
1988
  "description": "registration flow",
1949
1989
  "providerId": "basic-flow",
@@ -1962,7 +2002,7 @@
1962
2002
  ]
1963
2003
  },
1964
2004
  {
1965
- "id": "5d7b4bc9-e93b-40da-aeb6-ba0c38392f1a",
2005
+ "id": "d26ae72b-a933-44dc-9927-1c82757004b2",
1966
2006
  "alias": "registration form",
1967
2007
  "description": "registration form",
1968
2008
  "providerId": "form-flow",
@@ -2004,7 +2044,7 @@
2004
2044
  ]
2005
2045
  },
2006
2046
  {
2007
- "id": "ee7a56e4-c827-4f24-8b8b-8476050b0b64",
2047
+ "id": "222ee8d6-1892-4768-9ada-720274b6bf9a",
2008
2048
  "alias": "reset credentials",
2009
2049
  "description": "Reset credentials for a user if they forgot their password or something",
2010
2050
  "providerId": "basic-flow",
@@ -2046,7 +2086,7 @@
2046
2086
  ]
2047
2087
  },
2048
2088
  {
2049
- "id": "360f0031-4c3b-4272-84ca-2172d430b4bc",
2089
+ "id": "e8b4d92c-27c1-4a9b-9b16-7ceb810fa230",
2050
2090
  "alias": "saml ecp",
2051
2091
  "description": "SAML ECP Profile Authentication Flow",
2052
2092
  "providerId": "basic-flow",
@@ -2066,14 +2106,14 @@
2066
2106
  ],
2067
2107
  "authenticatorConfig": [
2068
2108
  {
2069
- "id": "53630acd-a33a-40e3-8786-cf85464c6f9e",
2109
+ "id": "e5847a0b-855d-4d93-85fd-94714be3ed92",
2070
2110
  "alias": "create unique user config",
2071
2111
  "config": {
2072
2112
  "require.password.update.after.registration": "false"
2073
2113
  }
2074
2114
  },
2075
2115
  {
2076
- "id": "c0d2b6a0-caad-4e90-b040-17cacdaf70bb",
2116
+ "id": "a2a18aa4-bd4c-4c2a-9286-e9d6c64f4812",
2077
2117
  "alias": "review profile config",
2078
2118
  "config": {
2079
2119
  "update.profile.on.first.login": "missing"