8000 Add a way to extend the UI with an Java API by edewit · Pull Request #23772 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Add a way to extend the UI with an Java API - #23772

Merged
edewit merged 9 commits into
keycloak:mainfrom
edewit:ui-ext-test
Jan 22, 2024
Merged

edewit merged 9 commits into
keycloak:mainfrom
edewit:ui-ext-test

Conversation

@edewit
@edewit edewit commented Oct 6, 2023 •
Copy link
Copy Markdown
Contributor

Initial version of the API that enables java developers to extend the admin UI

@cypress
cypress Bot commented Oct 6, 2023 •
Copy link
Copy Markdown

Passing run #10688 ↗︎

0 553 54 0 Flakiness 0

Details:

Merge a61d2c6 into 656e680...
Project: Keycloak Admin UI Commit: 38219d6255 ℹ️
Status: Passed Duration: 07:21 💡
Started: Jan 22, 2024 7:17 AM Ended: Jan 22, 2024 7:24 AM

Review all test suite changes for PR #23772 ↗︎

ghost

This comment was marked as outdated.

@ghost

This comment was marked as outdated.

ghost

This comment was marked as outdated.

@ghost

This comment was marked as outdated.

@hypery2k

This comment was marked as off-topic.

Comment on lines 2988 to 3001
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't change this for this first version, but in the future a developer would want to use the actual name of the item.

So for instance, searchItem=Search item would become searchItem=Search {{itemName}}

This is very crude and there are still open issues that need to be worked out

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@edewit
edewit requested a review from a team as a code owner January 19, 2024 12:48
@ghost ghost added the team/cloud-native label Jan 19, 2024
@edewit
edewit enabled auto-merge (squash) January 19, 2024 12:51
@edewit
edewit merged commit 37790c7 into keycloak:main Jan 22, 2024
@edewit
edewit deleted the ui-ext-test branch January 23, 2024 13:00
ShefeeqPM pushed a commit to ShefeeqPM/keycloak that referenced this pull request Jan 27, 2024
* POC to see how we could extend the UI

This is very crude and there are still open issues that need to be worked out

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added saving option

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added list and recreate client form

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* add tab ui

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* integrate tabs

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* remove examples

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed error messages

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* added Feature for ui customization

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: ShefeeqPM <86718986+ShefeeqPM@users.noreply.github.com>
@smandlavdiya
Copy link
Copy Markdown

Initial version of the API that enables java developers to extend the admin UI

I was trying to add a new tab on client but unable to figure out how would i get client scope when i save and add values with oncreate()
any suggestions would be good to start please

@carlosrodovalho
Copy link
Copy Markdown

I am experiencing an issue with my implementation of the ThemeUiTab class. The implementation works correctly when updating the realm attribute using the administrative interface. However, when I use the REST API to update the realm attribute, the new attribute is saved (as confirmed by checking Keycloak's database), but the input field in the administrative interface still displays the old value.

I have tried reloading Keycloak, but the interface does not load the new value from the database.

For reference, I implemented the example from the following repository:
https://github.com/keycloak/keycloak-quickstarts/blob/latest/extension/extend-admin-console-spi/src/main/java/org/keycloak/admin/ui/ThemeUiTab.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0