Elffuss BraidHub

kikocis/dataspace-portal public

Branch: main
b5d3a80b3395 docs: rebrand Authority Portal to Data Space Portal (#418) Tim Berthold,
..
README.md1.3 KiB
extract-realm.shexecutable1.4 KiB

README.md

About This Script

What does this script do?

This Shell script will replace the realm.json from the running Quarkus Devservice Keycloak Container, exporting the realm "authority-portal"

How to execute this script?

To run this script, execute the following command from the backend project's root.

./docs/dev/keycloak-realm-export/extract-realm.sh

After the script has run, the exported realm.json may contain unrecognized fields which leads to an import error on next startup. Quarkus indicates those with an error message on startup like this:

2024-12-20 10:08:44,484 ERROR [io.qua.oid.dep.dev.key.KeycloakDevServicesProcessor] (build-57) Realm realm.dev.json resource can not be opened: Unrecognized field "firstBrokerLoginFlow" (class org.keycloak.representations.idm.RealmRepresentation), not marked as ignorable [...]

To fix this, delete the lines with unrecognized fields from the exported realm.json file.

Why do we need this script?

Manually keeping track of the Realm Config JSON is very tedious. Editing the realm through Keycloak remains the easiest way