Skip to content

Commit

Permalink
Merge pull request #46 from AxonIQ/fix/softfail-on-credential-misconf…
Browse files Browse the repository at this point in the history
…iguration

Ignore credentials if they are wrongly formatted
  • Loading branch information
smcvb authored Jan 25, 2024
2 parents 1b247aa + 7156c6c commit 3a9ffc3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class AxoniqConsoleAutoConfiguration {
logger.warn("No credentials were provided for the connection to AxonIQ Console. Please provide them as instructed through the 'axoniq.console.credentials' property.")
return ConfigurerModule { }
}
if (!credentials.contains(":")) {
logger.warn("The credentials for the connection to AxonIQ Console don't have the right format. Please provide them as instructed through the 'axoniq.console.credentials' property.")
return ConfigurerModule { }
}
val applicationName = (properties.applicationName?.trim()?.ifEmpty { null })
?: (applicationContext.applicationName.trim().ifEmpty { null })
?: (applicationContext.id?.removeSuffix("-1"))
Expand Down

0 comments on commit 3a9ffc3

Please sign in to comment.