From c03bd3f7174973473d96f384e1916d8723ca24e8 Mon Sep 17 00:00:00 2001 From: yahya jabary <61852663+sueszli@users.noreply.github.com> Date: Mon, 10 Jul 2023 23:07:17 +0200 Subject: [PATCH] Remove deprecated usage Closes gh-13446 --- docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc index 593709b729..0c03d4ecd6 100644 --- a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc +++ b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc @@ -176,7 +176,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { .authorizeHttpRequests(authorize -> authorize .anyRequest().authenticated() ) - .oauth2ResourceServer(OAuth2ResourceServerConfigurer::jwt); + .oauth2ResourceServer((oauth2) -> oauth2.jwt(Customizer.withDefaults())); return http.build(); } ----