commit
53c3696cbb
3 changed files with 35 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
org.aerogear.ups.security.AerogearThemeProvider
|
|
@ -0,0 +1 @@
|
|||
org.aerogear.ups.security.AerogearThemeProviderFactory
|
Loading…
Reference in a new issue