Find a file
2022-11-28 15:22:32 +01:00
.dev-import Improve keycloak theming 2022-11-27 21:38:41 +01:00
account Fix header z-index 2022-11-28 15:22:32 +01:00
admin Initial work on pub.solar theme 2022-11-27 02:17:33 +01:00
common Fix header z-index 2022-11-28 15:22:32 +01:00
email Initial work on pub.solar theme 2022-11-27 02:17:33 +01:00
login Fix header z-index 2022-11-28 15:22:32 +01:00
pkgs Compile sass on build 2022-11-27 15:17:32 +01:00
welcome Initial work on pub.solar theme 2022-11-27 02:17:33 +01:00
.envrc Initial work on pub.solar theme 2022-11-27 02:17:33 +01:00
.gitignore Improve keycloak theming 2022-11-27 21:38:41 +01:00
flake.lock Initial work on pub.solar theme 2022-11-27 02:17:33 +01:00
flake.nix Working nix package for theme 2022-11-27 05:16:39 +01:00
overlay.nix Working nix package for theme 2022-11-27 05:16:39 +01:00
README.md Improve keycloak theming 2022-11-27 21:38:41 +01:00
shell.nix Initial work on pub.solar theme 2022-11-27 02:17:33 +01:00

pub.solar Keycloak theme

Development setup

To start a dev keycloak instance that can show the theme, you need to do the following:

  1. Go into Keycloak, and export the pub.solar realm config. In Keycloak, open the pub.solar realm, click on the menu item "Realm settings", open the dropdown "Action", and click "Partial export". Move the generated JSON file into ./.dev-imports in this repo.

  2. Run the following command:

docker run \
  --name keycloak-theme-dev \
  -p 8080:8080 \
  -e KEYCLOAK_ADMIN=admin \
  -e KEYCLOAK_ADMIN_PASSWORD=admin \
  -v $(pwd):/opt/keycloak/themes/pub.solar \
  -v $(pwd)/.dev-import:/opt/keycloak/data/import \
  quay.io/keycloak/keycloak:20.0.1 \
  start-dev --import-realm
  1. After this, you can start and stop the container using docker start keycloak-theme-dev and docker-stop keycloak-theme-dev.

  2. Connect to the local keycloak instance at http://localhost:8080 and open the administration console. In the pub.solar realm, click on the menu item "Clients", then the client "account", "Advanced" tab, "Authentication flow overrides" section, select "Webauthn Browser" for the "Browser Flow". Press save.