From 7cb885cea7ae317ae071a2ac72956faa67d4fdf9 Mon Sep 17 00:00:00 2001 From: Hiroyuki Wada Date: Sat, 4 Apr 2020 17:08:36 +0900 Subject: [PATCH] feat: use "Theme Resources" for the custom template --- README.md | 9 +++++---- ejb/src/main/resources/META-INF/keycloak-themes.json | 6 ------ .../messages/admin-messages_en.properties | 0 .../partials/realm-identity-provider-discord-ext.html | 0 .../partials/realm-identity-provider-discord.html | 0 .../main/resources/theme/discord/admin/theme.properties | 2 -- 6 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 ejb/src/main/resources/META-INF/keycloak-themes.json rename ejb/src/main/resources/{theme/discord/admin => theme-resources}/messages/admin-messages_en.properties (100%) rename ejb/src/main/resources/{theme/discord/admin => theme-resources}/resources/partials/realm-identity-provider-discord-ext.html (100%) rename ejb/src/main/resources/{theme/discord/admin => theme-resources}/resources/partials/realm-identity-provider-discord.html (100%) delete mode 100644 ejb/src/main/resources/theme/discord/admin/theme.properties diff --git a/README.md b/README.md index 7ca0015..a907215 100644 --- a/README.md +++ b/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 diff --git a/ejb/src/main/resources/META-INF/keycloak-themes.json b/ejb/src/main/resources/META-INF/keycloak-themes.json deleted file mode 100644 index c1f3185..0000000 --- a/ejb/src/main/resources/META-INF/keycloak-themes.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "themes": [{ - "name" : "discord", - "types": [ "admin" ] - }] -} diff --git a/ejb/src/main/resources/theme/discord/admin/messages/admin-messages_en.properties b/ejb/src/main/resources/theme-resources/messages/admin-messages_en.properties similarity index 100% rename from ejb/src/main/resources/theme/discord/admin/messages/admin-messages_en.properties rename to ejb/src/main/resources/theme-resources/messages/admin-messages_en.properties diff --git a/ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord-ext.html b/ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord-ext.html similarity index 100% rename from ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord-ext.html rename to ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord-ext.html diff --git a/ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord.html b/ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord.html similarity index 100% rename from ejb/src/main/resources/theme/discord/admin/resources/partials/realm-identity-provider-discord.html rename to ejb/src/main/resources/theme-resources/resources/partials/realm-identity-provider-discord.html diff --git a/ejb/src/main/resources/theme/discord/admin/theme.properties b/ejb/src/main/resources/theme/discord/admin/theme.properties deleted file mode 100644 index 93d3b28..0000000 --- a/ejb/src/main/resources/theme/discord/admin/theme.properties +++ /dev/null @@ -1,2 +0,0 @@ -parent=keycloak -