8000 Added `ThemeManagerSpi` and ported `DefaultThemeManagerFactory` to use it by xgp · Pull Request #38592 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added ThemeManagerSpi and ported DefaultThemeManagerFactory to use it #38592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

xgp
Copy link
Contributor
@xgp xgp commented Apr 1, 2025

Closes #38433.

Creates a ThemeManagerFactory as a proper SPI so that it can be accessed/overridden.

Implementation

  • creates ThemeManagerSpi and ThemeManagerFactory
  • the current DefaultThemeManagerFactory implements ThemeManagerFactory
  • update the code in DefaultKeycloakSessionFactory that uses the DefaultThemeManagerFactory

Copy link
Contributor
@mposolda mposolda left a comment

Choose a reason for hiding this comment

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

@xgp Thanks for the PR! It looks fine to me, but it will be good to consider this as an internal SPI (added 2 comments inline about it).

Also there are lots of test failures. I think it would be needed to register new SPI also to the file https://github.com/keycloak/keycloak/blob/main/server-spi-private/src/main/resources/META-INF/services/org.keycloak.provider.Spi in order to make it working.

Closes keycloak#38433.

Signed-off-by: Garth <244253+xgp@users.noreply.github.com>

Moved ThemeManagerSpi and ThemeManagerFactory to server-spi-private. Marked internal. Added to org.keycloak.provider.Spi file

Signed-off-by: Garth <244253+xgp@users.noreply.github.com>
@xgp xgp force-pushed the xgp/themeManagerFactory-38433 branch from 97d702a to a7ac297 Compare April 7, 2025 18:44
@xgp
Copy link
Contributor Author
xgp commented Apr 7, 2025

@mposolda Thanks for the feedback. Made all of your changes and pushed.

I'm afraid my computer is too old to make running all the tests practical, so I'll watch the CI to see if it fixes the issues.

Copy link
Contributor
@mposolda mposolda left a comment

Choose a reason for hiding this comment

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

@xgp Thanks!

@mposolda mposolda merged commit 2c06078 into keycloak:main Apr 25, 2025
77 checks passed
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.

Make ThemeManagerFactory into a proper SPI so that it can be accessed/overridden
2 participants
0