diff --git a/project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java b/project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java new file mode 100755 index 0000000000..38043150c8 --- /dev/null +++ b/project-integrations/aerogear-ups/auth-server/src/main/java/org/aerogear/ups/security/AerogearThemeProviderFactory.java @@ -0,0 +1,34 @@ +package org.aerogear.ups.security; + +import org.keycloak.Config; +import org.keycloak.freemarker.ThemeProvider; +import org.keycloak.freemarker.ThemeProviderFactory; +import org.keycloak.provider.ProviderSession; + +/** + * @author Bill Burke + * @version $Revision: 1 $ + */ +public class AerogearThemeProviderFactory implements ThemeProviderFactory { + protected AerogearThemeProvider theme; + + @Override + public ThemeProvider create(ProviderSession providerSession) { + return theme; + } + + @Override + public void init(Config.Scope config) { + theme = new AerogearThemeProvider(); + } + + @Override + public void close() { + + } + + @Override + public String getId() { + return "aerogear"; + } +} diff --git a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider deleted file mode 100755 index 89dd8749b0..0000000000 --- a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProvider +++ /dev/null @@ -1 +0,0 @@ -org.aerogear.ups.security.AerogearThemeProvider \ No newline at end of file diff --git a/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory new file mode 100755 index 0000000000..3ea19ba020 --- /dev/null +++ b/project-integrations/aerogear-ups/auth-server/src/main/resources/META-INF/services/org.keycloak.freemarker.ThemeProviderFactory @@ -0,0 +1 @@ +org.aerogear.ups.security.AerogearThemeProviderFactory \ No newline at end of file