Closed adropofliquid closed 6 days ago
The current Spring Security quickstart uses a deprecated method to configure the OAuth2 resource server. We should update this to use the more modern Lambda DSL approach, which is consistent with other configuration in the quickstart.
No response
The current configuration uses:
.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt)
This should be updated to:
.oauth2ResourceServer((oauth2) -> oauth2 .jwt(withDefaults()) )
This change aligns with the existing style used for authorizeHttpRequests in the same configuration class.
Description
The current Spring Security quickstart uses a deprecated method to configure the OAuth2 resource server. We should update this to use the more modern Lambda DSL approach, which is consistent with other configuration in the quickstart.
Discussion
No response
Motivation
No response
Details
The current configuration uses:
.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt)
This should be updated to:
This change aligns with the existing style used for authorizeHttpRequests in the same configuration class.