Closed kedare closed 7 months ago
The exception is a bug in our themes extension. I opened an issue there.
The new export/import functionality should be part of the current image. @rtufisi can you please check if you can reproduce?
Looks like somehow CI didn't run after import/export was merged, so the most recent jar doesn't have it.
Hey all,
You are correct @xgp , these changes are not found in the quay.io/phasetwo/phasetwo-keycloak:24.0.2 jar.
The CLI import and export functionality aren't available . The CLI import will work only with standard Keycloak realm files and the CLI export will produce a realm json which doesn't contain the "organizations" The import and export of the organizations can be test only from the Keycloak console import realm and partial export functionalities.
In order to implement this functionality the these legacy service such as DirExportProvider/DirImportProvider
and SingleFileImport/ExportProvider
need to be overridden to support the "organizations" key.
This is solved in #222.
@kedare This issue raised a whole host of problems, principally that we didn't understand how different import/export was from the command line and UI. We wrongly assumed they used the same classes, and we could easily override them without too much risk of new Keycloak versions breaking things. We've had too many instances of trying to do things that require upstream not to change, so we decided to go another way and make the organization import/export separate endpoints. Please see the current docs for how this works https://github.com/p2-inc/keycloak-orgs/blob/main/docs/import-export.md
Thank you for the fix.
Maybe it would be interesting to add another import/export command to make it easier to use? That would make the flow easier, I am not sure how this can be automated with the current system.
Looks like we first have to use the import command for everything else and then import via the API using the initial admin user ?
Maybe it would be interesting to add another import/export command to make it easier to use? That would make the flow easier, I am not sure how this can be automated with the current system.
We are considering adding a shell script to our own docker image distribution that will call the Keycloak import/export and then the Organizations import/export in the correct order.
Looks like we first have to use the import command for everything else and then import via the API using the initial admin user ?
:+1: Correct.
Hello.
When trying to export a realm via the
kc.sh export --dir out/
CLI, the organization informations are missing from the json export and the following error is logged in the export logs:On:
quay.io/phasetwo/phasetwo-keycloak:24.0.2
Maybe it's not yet available on this image ? (Looks like the error may be related to something else?)