Browse Source

Fix typos in OAuth 2.0 Resource Server

Signed-off-by: arianna <arianna.comi03@gmail.com>
pull/18661/head
arianna 2 months ago committed by Josh Cummings
parent
commit
10490a7b92
  1. 2
      docs/modules/ROOT/pages/servlet/oauth2/resource-server/jwt.adoc
  2. 2
      docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc

2
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 @@ -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 <<oauth2resourceserver-jwt-architecture-jwtauthenticationconverter,`JwtAuthenticationConverter`>> should inspect, like so:
.Authorities Claim Configuration

2
docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc

@ -755,7 +755,7 @@ public OpaqueTokenIntrospector introspector(RestTemplateBuilder builder, OAuth2R @@ -755,7 +755,7 @@ public OpaqueTokenIntrospector introspector(RestTemplateBuilder builder, OAuth2R
.setReadTimeout(Duration.ofSeconds(60))
.build();
return SpringOpaqueTokenIntrospector(introspectionUri, rest);
return new SpringOpaqueTokenIntrospector(introspectionUri, rest);
}
----

Loading…
Cancel
Save