keycloak / keycloak-quickstarts

Apache License 2.0
1.98k stars 984 forks source link

ThemeUiTab template not showing #603

Open dams666 opened 2 months ago

dams666 commented 2 months ago

Describe the bug

Following this tutorial: https://github.com/keycloak/keycloak-quickstarts/tree/latest/extension/extend-admin-console-spi I've compiled extend-admin-ui.jar, downloaded keycloak 25.0.5, and placed the extension in the /provider directory. The class is loading correcty (see the logs), but the tab is not showing.

image

Java version: 17 openjdk 17.0.10 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing)

Version

25.0.5

Expected behavior

No response

Actual behavior

Tab not showing, as described in: https://github.com/keycloak/keycloak-quickstarts/blob/latest/extension/extend-admin-console-spi/README.md

How to Reproduce?

No response

Anything else?

No response

christian7dev commented 2 months ago

run it with

--features=declarative-ui like bin/kc.sh start-dev --features=declarative-ui

dams666 commented 2 months ago

Thx christian7dev, it works now.

In order to avoid hours of unnecessary suffering, this should be added to the documentation: https://github.com/keycloak/keycloak-quickstarts/tree/latest/extension/extend-admin-console-spi

dams666 commented 2 months ago

There is no mention of this new feature in the release note either : https://www.keycloak.org/docs/latest/release_notes/index.html

christian7dev commented 2 months ago

can you edit the path after you save it ?

dams666 commented 2 months ago

I'm trying to understand the possibilities of the declarative interface, For now the documentation is quite limited, and we seem to be in the experimal side of things. My need is the following:

I would like to implement a tab containing a button. When clicked, this button calls an API. This API would return a file that would be downloaded by the user.

Is it possible currently? Thx in advance