Fix Javadoc error in oauth2ResourceServer

Fixes: gh-7670
This commit is contained in:
Eleftheria Stein 2019-12-27 14:24:46 +01:00
parent e1fdb24b5d
commit 2c7f2c2117
1 changed files with 6 additions and 2 deletions

View File

@ -2322,6 +2322,10 @@ public final class HttpSecurity extends
* @Configuration
* @EnableWebSecurity
* public class OAuth2ClientSecurityConfig extends WebSecurityConfigurerAdapter {
*
* @Value("${spring.security.oauth2.resourceserver.jwt.key-value}")
* RSAPublicKey key;
*
* @Override
* protected void configure(HttpSecurity http) throws Exception {
* http
@ -2333,14 +2337,14 @@ public final class HttpSecurity extends
* oauth2ResourceServer
* .jwt(jwt ->
* jwt
* .jwtAuthenticationConverter(jwtDecoder())
* .decoder(jwtDecoder())
* )
* );
* }
*
* @Bean
* public JwtDecoder jwtDecoder() {
* return JwtDecoders.fromOidcIssuerLocation(issuerUri);
* return NimbusJwtDecoder.withPublicKey(this.key).build();
* }
* }
* </pre>