keycloak: Admin UI does not respect default values for custom authenticator configurations
Before reporting an issue
- I have searched existing issues
- I have reproduced the issue with the latest release
Area
admin/ui
Describe the bug
I have a custom extension that implements an authenticator. The authenticator is configurable and defines default values for config options. As it can be seen in the screenshot, the default values are correctly send from the backend to the frontend. However, the frontend seems to ignore them and does not show the default values in the configuratoin dialog.

Version
20.0.5, 21.1.0
Expected behavior
New configuration uses default values for all config options.
Actual behavior
Default values are not used.
How to Reproduce?
- Checkout the extension at https://github.com/sventorben/keycloak-home-idp-discovery
- build it with
mvn clean install - start a docker container with docker-compose: ``docker-compose up`
- navigate to https://localhost:8080 and login to Keycloak with user admin and password admin
- open the realm named
test-realm - open the flow named
home-idp-discovery-flow - click the gear icon for the
Home IdP Discoveryauthenticator
Anything else?
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (14 by maintainers)
Commits related to this issue
- added default value back when not new fixes: #19852 — committed to edewit/keycloak by edewit a year ago
- added default value back when not new fixes: #19852 — committed to edewit/keycloak by edewit a year ago
- added default value back when not new (#20235) fixes: #19852 — committed to keycloak/keycloak by edewit a year ago
mappers have custom default values and they use the same component:
it’s not irrelevant, that’s why I add this comment that we don’t just add the default value blindly, because it will break it here