I want to configure camunda.bpm.admin-user.password without supplying it in a configuration file and instead use the java API (by overriding at app startup with @configuration or by defining a spring bean) as detailed here
I haven’t found any examples on how to do this
Hi Brian,
The code you are looking for is:
@Bean
@ConditionalOnProperty(prefix = "camunda.bpm.admin-user", name = "id")
public CreateAdminUserConfiguration createAdminUserConfiguration() {
return new CreateAdminUserConfiguration();
}
You will find the user creation part in the CreateAdminUserConfig bean. If you add a similar bean and not set the property, you will be able to define custom behavior.
Jan
1 Like