mirror of
https://github.com/spring-projects/spring-security.git
synced 2026-02-08 22:44:35 +00:00
Fix typos in OAuth 2.0 Resource Server
Signed-off-by: arianna <arianna.comi03@gmail.com>
This commit is contained in:
parent
f1e742dfc5
commit
10490a7b92
@ -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
|
||||
|
||||
@ -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…
x
Reference in New Issue
Block a user