Closed xgp closed 6 months ago
Update: This is possible via the ExportImportManager
interface of the DatastoreProvider
. https://www.keycloak.org/docs-api/23.0.3/javadocs/org/keycloak/storage/ExportImportManager.html
The goal is to provide an implementation of ExportImportManager
that overrides the default by allowing organizations to be imported and exported.
src/main/java/io/phasetwo/service/storage/
organizations
, and other objects that have relationships to organizations (e.g. Users and Identity Providers) should not be polluted with organization information.Steps:
organizations
keysrc/main/java/io/phasetwo/service/representation
We should target Keycloak 24, which should be out next week. In order to compile against the main
branch of Keycloak, you'll have to compile it. Directions are here https://github.com/keycloak/keycloak/blob/main/docs/building.md
Then you will need temporarily change the keycloak.version
variable in this pom to 999.0.0-SNAPSHOT
in order to compile against your locally built Keycloak.
We are doing this because LegacyExportImportManager
is being replaced with DefaultExportImportManager
.
representation/export
.representation
for guidance.@Data
annotations where possible.We need to make sure the presence of the organization
key does not cause standard Keycloak (i.e. without this extension) to fail. Try this first
completed in #205
It is not currently possible to hook into how Keycloak does export and import of realms. We should add a way to export and import Organizations both from the admin UI and startup/CLI.