|
|
|
|
@ -419,7 +419,7 @@ Java::
@@ -419,7 +419,7 @@ Java::
|
|
|
|
|
---- |
|
|
|
|
@Bean |
|
|
|
|
JwtDecoder jwtDecoder(JWTProcessor jwtProcessor, OAuth2TokenValidator<Jwt> jwtValidator) { |
|
|
|
|
NimbusJwtDecoder decoder = new NimbusJwtDecoder(processor); |
|
|
|
|
NimbusJwtDecoder decoder = new NimbusJwtDecoder(jwtProcessor); |
|
|
|
|
OAuth2TokenValidator<Jwt> validator = new DelegatingOAuth2TokenValidator<> |
|
|
|
|
(JwtValidators.createDefault(), jwtValidator); |
|
|
|
|
decoder.setJwtValidator(validator); |
|
|
|
|
|