From 208fb62db9165bd115703d11c1260c5d9413ca83 Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Mon, 5 Jun 2023 16:04:11 -0600 Subject: [PATCH] Update Deprecated Usage Issue gh-12629 --- .../server/resource/OAuth2ResourceServerConfigurerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java index 1ada23ccfe..4f6a56444e 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java @@ -1884,7 +1884,7 @@ public class OAuth2ResourceServerConfigurerTests { .anyRequest().authenticated() ) .oauth2Login(withDefaults()) - .oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt); + .oauth2ResourceServer((oauth2) -> oauth2.jwt(withDefaults())); return http.build(); // @formatter:on }