Skip to content

Commit

Permalink
✏️ s3-integration client starter fix method naming
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir committed Aug 12, 2024
1 parent aab3dd2 commit b25a63a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ public void init() {

@Bean
@ConditionalOnProperty(prefix = "refarch.s3.client", name = "enable-security", havingValue = "true")
public ApiClient securedApiClientFactory(final ClientRegistrationRepository clientRegistrationRepository,
public ApiClient securedApiClient(final ClientRegistrationRepository clientRegistrationRepository,
final OAuth2AuthorizedClientService authorizedClientService) {
return new ApiClient(
this.authenticatedWebClient(clientRegistrationRepository, authorizedClientService));
}

@Bean
@ConditionalOnProperty(prefix = "refarch.s3.client", name = "enable-security", havingValue = "false", matchIfMissing = true)
public ApiClient apiClientFactory() {
public ApiClient apiClient() {
return new ApiClient(
WebClient.builder().build());
}
Expand Down Expand Up @@ -82,8 +82,7 @@ public FileService fileService(final SupportedFileExtensions supportedFileExtens
}

/**
* Instance of a {@link FileService} containing supported file extensions configured within in the
* 'de.muenchen.refarch.s3' scope.
* Instance of a {@link FileService} containing supported file extensions configured within in the 'de.muenchen.refarch.s3' scope.
*
* @return {@link FileService} for managing file extensions.
*/
Expand Down

0 comments on commit b25a63a

Please sign in to comment.