diff --git a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc index a4b1d27bff..6bdc26ba80 100644 --- a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc +++ b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc @@ -961,7 +961,7 @@ By default, Spring Security will wire the `JwtAuthenticationProvider` with a def As part of configuring a `JwtAuthenticationConverter`, you can supply a subsidiary converter to go from `Jwt` to a `Collection` of granted authorities. -Let's say that that your authorization server communicates authorities in a custom claim called `authorities`. +Let's say that your authorization server communicates authorities in a custom claim called `authorities`. In that case, you can configure the claim that <> should inspect, like so: .Authorities Claim Configuration diff --git a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc index 1e406208a1..80654024cb 100644 --- a/docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc +++ b/docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc @@ -755,7 +755,7 @@ public OpaqueTokenIntrospector introspector(RestTemplateBuilder builder, OAuth2R .setReadTimeout(Duration.ofSeconds(60)) .build(); - return SpringOpaqueTokenIntrospector(introspectionUri, rest); + return new SpringOpaqueTokenIntrospector(introspectionUri, rest); } ----