commit
7f60e4f986
5 changed files with 2 additions and 6 deletions
|
@ -17,8 +17,6 @@
|
||||||
|
|
||||||
package org.keycloak.common;
|
package org.keycloak.common;
|
||||||
|
|
||||||
import org.keycloak.common.util.Time;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"theme": {
|
"theme": {
|
||||||
"default": "keycloak",
|
|
||||||
"staticMaxAge": 2592000,
|
"staticMaxAge": 2592000,
|
||||||
"cacheTemplates": true,
|
"cacheTemplates": true,
|
||||||
"cacheThemes": true,
|
"cacheThemes": true,
|
||||||
|
|
|
@ -19,6 +19,7 @@ package org.keycloak.theme;
|
||||||
|
|
||||||
import org.jboss.logging.Logger;
|
import org.jboss.logging.Logger;
|
||||||
import org.keycloak.Config;
|
import org.keycloak.Config;
|
||||||
|
import org.keycloak.common.Version;
|
||||||
import org.keycloak.models.KeycloakSession;
|
import org.keycloak.models.KeycloakSession;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -42,7 +43,7 @@ public class ExtendingThemeManager implements ThemeProvider {
|
||||||
public ExtendingThemeManager(KeycloakSession session, ConcurrentHashMap<ExtendingThemeManagerFactory.ThemeKey, Theme> themeCache) {
|
public ExtendingThemeManager(KeycloakSession session, ConcurrentHashMap<ExtendingThemeManagerFactory.ThemeKey, Theme> themeCache) {
|
||||||
this.session = session;
|
this.session = session;
|
||||||
this.themeCache = themeCache;
|
this.themeCache = themeCache;
|
||||||
this.defaultTheme = Config.scope("theme").get("default", "keycloak");
|
this.defaultTheme = Config.scope("theme").get("default", Version.NAME.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ThemeProvider> getProviders() {
|
private List<ThemeProvider> getProviders() {
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"theme": {
|
"theme": {
|
||||||
"default": "keycloak",
|
|
||||||
"staticMaxAge": "${keycloak.theme.staticMaxAge:2592000}",
|
"staticMaxAge": "${keycloak.theme.staticMaxAge:2592000}",
|
||||||
"cacheTemplates": "${keycloak.theme.cacheTemplates:true}",
|
"cacheTemplates": "${keycloak.theme.cacheTemplates:true}",
|
||||||
"cacheThemes": "${keycloak.theme.cacheThemes:true}",
|
"cacheThemes": "${keycloak.theme.cacheThemes:true}",
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"theme": {
|
"theme": {
|
||||||
"default": "keycloak",
|
|
||||||
"staticMaxAge": "${keycloak.theme.staticMaxAge:2592000}",
|
"staticMaxAge": "${keycloak.theme.staticMaxAge:2592000}",
|
||||||
"cacheTemplates": "${keycloak.theme.cacheTemplates:true}",
|
"cacheTemplates": "${keycloak.theme.cacheTemplates:true}",
|
||||||
"cacheThemes": "${keycloak.theme.cacheThemes:true}",
|
"cacheThemes": "${keycloak.theme.cacheThemes:true}",
|
||||||
|
|
Loading…
Reference in a new issue