keycloakify 2.5.0 → 2.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.
- package/CHANGELOG.md +4 -0
- package/README.md +21 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
@@ -20,6 +20,19 @@
|
|
20
20
|
<img src="https://user-images.githubusercontent.com/6702424/110260457-a1c3d380-7fac-11eb-853a-80459b65626b.png">
|
21
21
|
</p>
|
22
22
|
|
23
|
+
**NEW in v2.5**
|
24
|
+
|
25
|
+
- User Profile ([`register-user-profile.ftl`](https://github.com/InseeFrLab/keycloakify/blob/main/src/lib/components/RegisterUserProfile.tsx))
|
26
|
+
is now supported! 🎉
|
27
|
+
It enables to [define, from the admin console](https://user-images.githubusercontent.com/6702424/136872461-1f5b64ef-d2ef-4c6b-bb8d-07d4729552b3.png),
|
28
|
+
what information you want to collect on your users in the register page and to validate inputs
|
29
|
+
[**on the frontend**, in realtime](https://github.com/InseeFrLab/keycloakify/blob/6dca6a93d8cfe634ee4d8574ad0c091641220092/src/lib/getKcContext/KcContextBase.ts#L225-L261)!
|
30
|
+
NOTE: User profile is only available in Keycloak 15 and it's a beta feature that
|
31
|
+
[needs to be enabled when launching keycloak](https://github.com/InseeFrLab/keycloakify/blob/59f106bf9e210b63b190826da2bf5f75fc8b7644/src/bin/build-keycloak-theme/build-keycloak-theme.ts#L116-L117) and [enabled in the console](https://user-images.githubusercontent.com/6702424/136874428-b071d614-c7f7-440d-9b2e-670faadc0871.png).
|
32
|
+
- Feature [Use advanced message](https://github.com/InseeFrLab/keycloakify/blob/59f106bf9e210b63b190826da2bf5f75fc8b7644/src/lib/i18n/useKcMessage.tsx#L53-L66)
|
33
|
+
and [`messagesPerFields`](https://github.com/InseeFrLab/keycloakify/blob/59f106bf9e210b63b190826da2bf5f75fc8b7644/src/lib/getKcContext/KcContextBase.ts#L70-L75) (implementation [here](https://github.com/InseeFrLab/keycloakify/blob/59f106bf9e210b63b190826da2bf5f75fc8b7644/src/bin/build-keycloak-theme/generateFtl/common.ftl#L130-L189))
|
34
|
+
- Test container now uses Keycloak version `15.0.2`.
|
35
|
+
|
23
36
|
**NEW in v2**
|
24
37
|
|
25
38
|
- It's now possible to implement custom `.ftl` pages.
|
@@ -77,6 +90,7 @@ If you already have a Keycloak custom theme, it can be easily ported to Keycloak
|
|
77
90
|
- [Implement context persistence (optional)](#implement-context-persistence-optional)
|
78
91
|
- [Kickstart video](#kickstart-video)
|
79
92
|
- [About the errors related to `objectToJson` in Keycloak logs.](#about-the-errors-related-to-objecttojson-in-keycloak-logs)
|
93
|
+
- [Adding custom message (to `i18n/useKcMessage.tsx`)](#adding-custom-message-to-i18nusekcmessagetsx)
|
80
94
|
- [Email domain whitelist](#email-domain-whitelist)
|
81
95
|
|
82
96
|
# Requirements
|
@@ -85,7 +99,7 @@ Tested with the following Keycloak versions:
|
|
85
99
|
|
86
100
|
- [11.0.3](https://hub.docker.com/layers/jboss/keycloak/11.0.3/images/sha256-4438f1e51c1369371cb807dffa526e1208086b3ebb9cab009830a178de949782?context=explore)
|
87
101
|
- [12.0.4](https://hub.docker.com/layers/jboss/keycloak/12.0.4/images/sha256-67e0c88e69bd0c7aef972c40bdeb558a974013a28b3668ca790ed63a04d70584?context=explore)
|
88
|
-
-
|
102
|
+
- [15.0.2](https://hub.docker.com/layers/jboss/keycloak/15.0.2/images/sha256-d8ed1ee5df42a178c341f924377da75db49eab08ea9f058ff39a8ed7ee05ec93?context=explore)
|
89
103
|
|
90
104
|
This tool will be maintained to stay compatible with Keycloak v11 and up, however, the default pages you will get
|
91
105
|
(before you customize it) will always be the ones of Keycloak v11.
|
@@ -425,6 +439,12 @@ To [converts the `.ftl` values into a JavaScript object](https://github.com/Inse
|
|
425
439
|
without making assumptions on the `.data_model` we have to do things that throws.
|
426
440
|
It's all-right though because every statement that can fail is inside an `<#attempt><#recorver>` block but it results in errors being printed to the logs.
|
427
441
|
|
442
|
+
# Adding custom message (to `i18n/useKcMessage.tsx`)
|
443
|
+
|
444
|
+
You can reproduce [this approach](https://github.com/garronej/keycloakify-demo-app/blob/main/src/kcMessagesExtension.ts)
|
445
|
+
( don't forget to [evaluate the code](https://github.com/garronej/keycloakify-demo-app/blob/0a6d349dba89a5702f98ba48bca6c76ac7265e1f/src/index.tsx#L15) ).
|
446
|
+
This approach is a bit hacky as it doesn't provide type safety but it works.
|
447
|
+
|
428
448
|
# Email domain whitelist
|
429
449
|
|
430
450
|
If you want to restrict the emails domain that can register, you can use [this plugin](https://github.com/micedre/keycloak-mail-whitelisting)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.1",
|
4
4
|
"description": "Keycloak theme generator for Reacts app",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -319,6 +319,6 @@
|
|
319
319
|
"react-markdown": "^5.0.3",
|
320
320
|
"scripting-tools": "^0.19.13",
|
321
321
|
"tsafe": "^0.8.1",
|
322
|
-
"tss-react": "^1.0.
|
322
|
+
"tss-react": "^1.0.3"
|
323
323
|
}
|
324
324
|
}
|