oauth2Client

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

Configures OAuth 2.0 client support.

Example:

@Configuration
@EnableWebSecurity
class SecurityConfig {

@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
oauth2Client { }
}
return http.build()
}
}

Parameters

oauth2ClientConfiguration

custom configuration to configure the OAuth 2.0 client support

See also