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.

image

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 Discovery authenticator

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

Most upvoted comments

mappers have custom default values and they use the same component: image 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