oauth2ResourceServer
Configures OAuth 2.0 resource server support.
Example:
@Configuration
@EnableWebSecurity
class SecurityConfig {
@Bean
fun securityFilterChain(http: HttpSecurity): SecurityFilterChain {
http {
oauth2ResourceServer {
jwt { }
}
}
return http.build()
}
}Content copied to clipboard
Parameters
oauth2ResourceServerConfiguration
custom configuration to configure the OAuth 2.0 resource server support