8000 Honor baseUrl when generating client home url in admin-ui by thomasdarimont · Pull Request #34016 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Honor baseUrl when generating client home url in admin-ui - #34016

Merged
jonkoops merged 2 commits into
keycloak:mainfrom
thomasdarimont:issue/gh-34015-honor-baseurl-in-adminui-in-convertClientToUrl-for-authBaseUrl
Oct 18, 2024
Merged

jonkoops merged 2 commits into
keycloak:mainfrom
thomasdarimont:issue/gh-34015-honor-baseurl-in-adminui-in-convertClientToUrl-for-authBaseUrl

Conversation

@thomasdarimont
Copy link
Copy Markdown
Contributor

Previously, the baseUrl was not considered when ${authAdminUrl} was used in the URLs, e.g. for security-admin-console client.

Fixes #34015

@thomasdarimont
thomasdarimont requested a review from a team as a code owner October 16, 2024 21:21
@thomasdarimont
Copy link
Copy Markdown
Contributor Author

With this change the home url for the security-admin-console client is correctly generated.

image

@thomasdarimont
thomasdarimont force-pushed the issue/gh-34015-honor-baseurl-in-adminui-in-convertClientToUrl-for-authBaseUrl branch from 0fad2e4 to 949b59a Compare October 16, 2024 21:24
@jonkoops jonkoops changed the title Honor baseUrl when generating client home url in admin-ui (#34015) Honor baseUrl when generating client home url in admin-ui Oct 17, 2024
jonkoops
jonkoops previously approved these changes Oct 17, 2024
@jonkoops jonkoops left a comment
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.

LGTM

@jonkoops
Copy link
Copy Markdown
Contributor

@thomasdarimont could you also update the tests for this one?

@thomasdarimont
thomasdarimont force-pushed the issue/gh-34015-honor-baseurl-in-adminui-in-convertClientToUrl-for-authBaseUrl branch from 949b59a to a0b47d4 Compare October 18, 2024 09:33
@thomasdarimont
Copy link
Copy Markdown
Contributor Author

@jonkoops I added some tests for the generated Home URLs for built-in clients and fixed an existing incorrect test for "test when root url constrains ${authAdminUrl}"

…4015)

Previously, the baseUrl was not considered when ${authAdminUrl} was used in the URLs, e.g. for security-admin-console client.

Fixes keycloak#34015

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
- Fix url parameterization in "test when root url constrains ${authAdminUrl}"
- Add tests for home URL for built-in clients (account-console, security-admin-console)
- Add data-testid attribute to ease finding client home URLs

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
@thomasdarimont
thomasdarimont force-pushed the issue/gh-34015-honor-baseurl-in-adminui-in-convertClientToUrl-for-authBaseUrl branch from a0b47d4 to af43f0b Compare October 18, 2024 09:35
@jonkoops jonkoops left a comment
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.

Looks great @thomasdarimont, thanks for this!

@jonkoops
jonkoops merged commit c7bcb26 into keycloak:main Oct 18, 2024
jonkoops pushed a commit to jonkoops/keycloak that referenced this pull request Oct 18, 2024
…ole (keycloak#34016)

Closes keycloak#34015

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
(cherry picked from commit c7bcb26)
@jonkoops
Copy link
Copy Markdown
Contributor

Backport for v26 is up under #34087

jonkoops added a commit that referenced this pull request Oct 18, 2024
…ole (#34016) (#34087)

Closes #34015

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
(cherry picked from commit c7bcb26)

Co-authored-by: Thomas Darimont <thomas.darimont@googlemail.com>
@edewit edewit mentioned this pull request Nov 19, 2024
@edewit edewit mentioned this pull request Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Home URL for security-admin-console is broken

2 participants

0