Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stefanozanella/58e22356dcc43d8df0f7bfb7ec9601ca to your computer and use it in GitHub Desktop.
Save stefanozanella/58e22356dcc43d8df0f7bfb7ec9601ca to your computer and use it in GitHub Desktop.
@Bean
fun authorizedClientManager(
clientRegistrationRepository: ClientRegistrationRepository,
authorizedClientService: OAuth2AuthorizedClientService,
) =
AuthorizedClientServiceOAuth2AuthorizedClientManager(
clientRegistrationRepository,
authorizedClientService,
).apply {
setAuthorizedClientProvider(
OAuth2AuthorizedClientProviderBuilder
.builder()
.clientCredentials()
.build(),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment