New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt the keycloak startup script #541
Comments
Hi @JohannesLichtenberger, I am a first timer. Can I work on this? |
Sure :-) |
Hi @JohannesLichtenberger, can you brief over the issue and let me know what changes are required? |
The user should only be added if the user hasn't been added before, thus, first check if user exists, if not create the user |
@Aditya31398, do you like and have time to work on the issue? |
@JohannesLichtenberger, sorry for the delay. I did look into the keycloak documentation. I was thinking we could do something like the below code.
In order to get the list of users we have to connect to the server prior to running the command. This can be achieved using the config credentials command which is available in the kcadm.sh . The below command can be used for connecting to the server.
Do let me know your views on this approach. Post that I can create a PR for the changes. If this is the right approach, can you also help with the parameters used for config credential command. |
The script is copied into a startup folder of keycloak, so we might be able to simply copy your code:
|
Added Check admin user exists before creating new admin user
Added config credentials Command
We first have to check if an admin user already exists in this script: https://github.com/sirixdb/sirix/blob/master/bundles/sirix-rest-api/src/test/resources/create-sirix-users.sh
The text was updated successfully, but these errors were encountered: