CycriLabs / keycloak-configurator

Configures Keycloak based on a set of JSON configuration files
MIT License
8 stars 0 forks source link

Add client secret export subcommand #2

Closed MarcScheib closed 11 months ago

MarcScheib commented 1 year ago

Implement the subcommand to allow exporting secrets of clients. Ideally, the command reads in a templste file that specifies the required format of the export result per client. In some case, it may be necessary to export multiple, different formats. Therefore, if a directory is provided, all files with a specific name should be used. In addition, the subcommand receives a realm name and additional parameters that may be necessary for the export (besides the secret that is always requested from keycloak).

Secrets can be exported for a single client as described in https://www.keycloak.org/docs-api/22.0.1/rest-api/index.html#_clients