Skip to content

Commit 92e1da3

Browse files
committed
Update to NimbusJwtDecoder Builder
Issue: gh-5351
1 parent 7e8aade commit 92e1da3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

samples/boot/oauth2resourceserver-multitenancy/src/main/java/sample/OAuth2ResourceServerSecurityConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
2929
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
3030
import org.springframework.security.oauth2.jwt.JwtDecoder;
31-
import org.springframework.security.oauth2.jwt.JwtProcessors;
3231
import org.springframework.security.oauth2.jwt.NimbusJwtDecoder;
3332
import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationProvider;
3433
import org.springframework.security.oauth2.server.resource.authentication.OAuth2IntrospectionAuthenticationProvider;
@@ -71,7 +70,7 @@ AuthenticationManagerResolver<HttpServletRequest> multitenantAuthenticationManag
7170
}
7271

7372
AuthenticationManager jwt() {
74-
JwtDecoder jwtDecoder = new NimbusJwtDecoder(JwtProcessors.withJwkSetUri(this.jwkSetUri).build());
73+
JwtDecoder jwtDecoder = NimbusJwtDecoder.withJwkSetUri(this.jwkSetUri).build();
7574
return new JwtAuthenticationProvider(jwtDecoder)::authenticate;
7675
}
7776

0 commit comments

Comments
 (0)