Merge pull request #400 from patriot1burke/master

aerogear fix
This commit is contained in:
Bill Burke 2014-05-19 18:09:54 -04:00
commit 53c3696cbb
3 changed files with 35 additions and 1 deletions

View file

@ -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 <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @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";
}
}

View file

@ -0,0 +1 @@
org.aerogear.ups.security.AerogearThemeProviderFactory