Skip to content

Commit c43e632

Browse files
lgrafjzheaux
authored andcommitted
Fix typo in OAuth2TokenValidator doc
Fixes gh-6925
1 parent 8e5dd19 commit c43e632

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/manual/src/docs/asciidoc/_includes/reactive/oauth2/resource-server.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Resource Server uses `JwtTimestampValidator` to verify a token's validity window
341341
@Bean
342342
ReactiveJwtDecoder jwtDecoder() {
343343
NimbusReactiveJwtDecoder jwtDecoder = (NimbusReactiveJwtDecoder)
344-
ReactiveJwtDecoders.withOidcIssuerLocation(issuerUri);
344+
ReactiveJwtDecoders.fromOidcIssuerLocation(issuerUri);
345345
346346
OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
347347
new JwtTimestampValidator(Duration.ofSeconds(60)),
@@ -383,7 +383,7 @@ Then, to add into a resource server, it's a matter of specifying the `ReactiveJw
383383
@Bean
384384
ReactiveJwtDecoder jwtDecoder() {
385385
NimbusReactiveJwtDecoder jwtDecoder = (NimbusReactiveJwtDecoder)
386-
ReactiveJwtDecoders.withOidcIssuerLocation(issuerUri);
386+
ReactiveJwtDecoders.fromOidcIssuerLocation(issuerUri);
387387
388388
OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator();
389389
OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri);

docs/manual/src/docs/asciidoc/_includes/servlet/preface/java-configuration.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ Resource Server uses `JwtTimestampValidator` to verify a token's validity window
721721
@Bean
722722
JwtDecoder jwtDecoder() {
723723
NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)
724-
JwtDecoders.withOidcIssuerLocation(issuerUri);
724+
JwtDecoders.fromOidcIssuerLocation(issuerUri);
725725

726726
OAuth2TokenValidator<Jwt> withClockSkew = new DelegatingOAuth2TokenValidator<>(
727727
new JwtTimestampValidator(Duration.ofSeconds(60)),
@@ -761,7 +761,7 @@ Then, to add into a resource server, it's a matter of specifying the `JwtDecoder
761761
@Bean
762762
JwtDecoder jwtDecoder() {
763763
NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder)
764-
JwtDecoders.withOidcIssuerLocation(issuerUri);
764+
JwtDecoders.fromOidcIssuerLocation(issuerUri);
765765

766766
OAuth2TokenValidator<Jwt> audienceValidator = new AudienceValidator();
767767
OAuth2TokenValidator<Jwt> withIssuer = JwtValidators.createDefaultWithIssuer(issuerUri);

0 commit comments

Comments
 (0)