Skip to content

Conversation

@thomasdarimont
Copy link
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
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
Copy link
Contributor

@jonkoops jonkoops left a comment

Choose a reason for hiding this comment

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

LGTM

@jonkoops
Copy link
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
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 <[email protected]>
- 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 <[email protected]>
@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
Copy link
Contributor

@jonkoops jonkoops left a comment

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
@jonkoops
Copy link
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 <[email protected]>
(cherry picked from commit c7bcb26)

Co-authored-by: Thomas Darimont <[email protected]>
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Home URL for security-admin-console is broken

2 participants