oauth2Client

fun oauth2Client(oauth2ClientConfiguration: ServerOAuth2ClientDsl.() -> Unit)

Configures OAuth2 client support.

Example:

@Configuration
@EnableWebFluxSecurity
class SecurityConfig {

@Bean
fun springWebFilterChain(http: ServerHttpSecurity): SecurityWebFilterChain {
return http {
oauth2Client {
clientRegistrationRepository = getClientRegistrationRepository()
}
}
}
}

Parameters

oauth2ClientConfiguration

custom configuration to configure the OAuth 2.0 client

See also