Update Deprecated Usage

Issue gh-12629
This commit is contained in:
Josh Cummings 2023-06-05 16:04:11 -06:00
parent 9b603b99ab
commit 208fb62db9

View File

@ -1884,7 +1884,7 @@ public class OAuth2ResourceServerConfigurerTests {
.anyRequest().authenticated()
)
.oauth2Login(withDefaults())
.oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt);
.oauth2ResourceServer((oauth2) -> oauth2.jwt(withDefaults()));
return http.build();
// @formatter:on
}