Browse Source

#10505 Fix jwtDecoder

Fixed jwtDecoder(JWTProcessor jwtProcessor, OAuth2TokenValidator<Jwt> jwtValidator)
pull/10537/head
Jeff Maxwell 4 years ago committed by Josh Cummings
parent
commit
5913501e1a
  1. 4
      docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc

4
docs/modules/ROOT/pages/servlet/oauth2/resource-server/multitenancy.adoc

@ -416,9 +416,9 @@ Now that we have a tenant-aware processor and a tenant-aware validator, we can p @@ -416,9 +416,9 @@ Now that we have a tenant-aware processor and a tenant-aware validator, we can p
----
@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(), this.jwtValidator);
(JwtValidators.createDefault(), jwtValidator);
decoder.setJwtValidator(validator);
return decoder;
}

Loading…
Cancel
Save