Browse Source

feat: use "Theme Resources" for the custom template

pull/5/head
Hiroyuki Wada 4 years ago
parent
commit
7cb885cea7
  1. 9
      README.md
  2. 6
      ejb/src/main/resources/META-INF/keycloak-themes.json
  3. 0
      ejb/src/main/resources/theme-resources/messages/admin-messages_en.properties
  4. 0
      ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord-ext.html
  5. 0
      ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord.html
  6. 2
      ejb/src/main/resources/theme/discord/admin/theme.properties

9
README.md

@ -17,10 +17,11 @@ You can get Client ID and Client Secret from the created application.
### Keycloak
1. Open `Themes` setting page in `master` realm. Then set `discord` theme as `Admin Console Theme`. Note: You may need to re-login for reloading the theme.
2. Add `discord` Identity Provider in the realm which you want to configure.
3. In the `discord` identity provider page, set `Client Id` and `Client Secret`.
4. (Optional) Set Guild Id(s) to allow federation if you want.
Note: You don't need to setup the theme in `master` realm from v0.3.0.
1. Add `discord` Identity Provider in the realm which you want to configure.
2. In the `discord` identity provider page, set `Client Id` and `Client Secret`.
3. (Optional) Set Guild Id(s) to allow federation if you want.
## Source Build

6
ejb/src/main/resources/META-INF/keycloak-themes.json

@ -1,6 +0,0 @@
{
"themes": [{
"name" : "discord",
"types": [ "admin" ]
}]
}

0
ejb/src/main/resources/theme/discord/admin/messages/admin-messages_en.properties → ejb/src/main/resources/theme-resources/messages/admin-messages_en.properties

0
ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord-ext.html → ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord-ext.html

0
ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord.html → ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord.html

2
ejb/src/main/resources/theme/discord/admin/theme.properties

@ -1,2 +0,0 @@
parent=keycloak
Loading…
Cancel
Save