Skip to content

Commit 2c7f2c2

Browse files
committed
Fix Javadoc error in oauth2ResourceServer
Fixes: gh-7670
1 parent e1fdb24 commit 2c7f2c2

File tree

1 file changed

+6
-2
lines changed
  • config/src/main/java/org/springframework/security/config/annotation/web/builders

1 file changed

+6
-2
lines changed

config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,10 @@ public OAuth2ResourceServerConfigurer<HttpSecurity> oauth2ResourceServer() throw
23222322
* &#064;Configuration
23232323
* &#064;EnableWebSecurity
23242324
* public class OAuth2ClientSecurityConfig extends WebSecurityConfigurerAdapter {
2325+
*
2326+
* &#064;Value("${spring.security.oauth2.resourceserver.jwt.key-value}")
2327+
* RSAPublicKey key;
2328+
*
23252329
* &#064;Override
23262330
* protected void configure(HttpSecurity http) throws Exception {
23272331
* http
@@ -2333,14 +2337,14 @@ public OAuth2ResourceServerConfigurer<HttpSecurity> oauth2ResourceServer() throw
23332337
* oauth2ResourceServer
23342338
* .jwt(jwt ->
23352339
* jwt
2336-
* .jwtAuthenticationConverter(jwtDecoder())
2340+
* .decoder(jwtDecoder())
23372341
* )
23382342
* );
23392343
* }
23402344
*
23412345
* &#064;Bean
23422346
* public JwtDecoder jwtDecoder() {
2343-
* return JwtDecoders.fromOidcIssuerLocation(issuerUri);
2347+
* return NimbusJwtDecoder.withPublicKey(this.key).build();
23442348
* }
23452349
* }
23462350
* </pre>

0 commit comments

Comments
 (0)