Merge pull request #1071 from stianst/jar-theme
Fix formatting of README.md
This commit is contained in:
commit
abb22296b7
4 changed files with 16 additions and 13 deletions
|
@ -8,6 +8,8 @@
|
|||
<module name="org.keycloak.keycloak-core"/>
|
||||
<module name="org.keycloak.keycloak-model-api"/>
|
||||
<module name="org.keycloak.keycloak-services"/>
|
||||
<module name="org.keycloak.keycloak-forms-common-freemarker"/>
|
||||
<module name="org.keycloak.keycloak-forms-common-themes"/>
|
||||
<module name="org.jboss.modules"/>
|
||||
</dependencies>
|
||||
</module>
|
||||
|
|
|
@ -34,5 +34,6 @@
|
|||
<module>basic-auth</module>
|
||||
<module>fuse</module>
|
||||
<module>kerberos</module>
|
||||
<module>themes</module>
|
||||
</modules>
|
||||
</project>
|
||||
|
|
|
@ -10,16 +10,16 @@ To use the theme you can either deploy it as a module or copy it to the Keycloak
|
|||
|
||||
To deploy as a module run:
|
||||
|
||||
mvn clean install
|
||||
$KEYCLOAK_HOME/bin/jboss-cli.sh --command="module add --name=org.keycloak.example.sunrisetheme --resources=target/keycloak-example-themes.jar"
|
||||
mvn clean install
|
||||
$KEYCLOAK_HOME/bin/jboss-cli.sh --command="module add --name=org.keycloak.example.sunrisetheme --resources=target/keycloak-example-themes.jar"
|
||||
|
||||
Then open $KEYCLOAK_HOME/standalone/configuration/keycloak-server.json and register the theme module by adding:
|
||||
|
||||
"theme": {
|
||||
"module": {
|
||||
"modules": [ "org.keycloak.example.sunrisetheme" ]
|
||||
}
|
||||
}
|
||||
"theme": {
|
||||
"module": {
|
||||
"modules": [ "org.keycloak.example.sunrisetheme" ]
|
||||
}
|
||||
}
|
||||
|
||||
Alternatively you can copy `src/main/resources/theme/login` to `standalone/configuration/themes/login/`.
|
||||
|
||||
|
@ -40,11 +40,11 @@ To deploy as a module run:
|
|||
|
||||
Then open $KEYCLOAK_HOME/standalone/configuration/keycloak-server.json and register the theme module by adding:
|
||||
|
||||
"theme": {
|
||||
"module": {
|
||||
"modules": [ "org.keycloak.example.logotheme" ]
|
||||
}
|
||||
}
|
||||
"theme": {
|
||||
"module": {
|
||||
"modules": [ "org.keycloak.example.logotheme" ]
|
||||
}
|
||||
}
|
||||
|
||||
Alternatively you can copy:
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public class JarThemeProvider implements ThemeProvider {
|
|||
|
||||
@Override
|
||||
public Theme getTheme(String name, Theme.Type type) throws IOException {
|
||||
return hasTheme(name, type) ? new ClassLoaderTheme(name, type, getClass().getClassLoader()) : null;
|
||||
return hasTheme(name, type) ? themes.get(type).get(name) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue