Skip to content

Commit

Permalink
EPA-354 copy values from user config into runtime config
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Blechschmidt committed Dec 23, 2024
1 parent 2af7535 commit c5bb209
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void requestNewAccessTokenIfNecessary() {
public void requestNewAccessTokenIfNecessary(RuntimeConfig runtimeConfig, Session replyTo, String replyToMessageId) {
if (StringUtils.isEmpty(getBearerToken(runtimeConfig)) || isExpired(bearerToken.get(runtimeConfig))) {
log.info("Request new bearer token.");
if(runtimeConfig != null && runtimeConfig.getConfigurations() != null) {
if(runtimeConfig != null && runtimeConfig.getConfigurations() != null && userConfigurationService.getConfig() != null) {
UserConfigurations configurations = runtimeConfig.getConfigurations();
UserConfigurations config = userConfigurationService.getConfig();
if(configurations.getBasicAuthUsername() == null && config.getBasicAuthUsername() != null) {
Expand Down

0 comments on commit c5bb209

Please sign in to comment.