Polish gh-1186

This commit is contained in:
Joe Grandja
2023-05-11 06:04:30 -04:00
parent 5f606ae757
commit 79c6cf4ed2
2 changed files with 2 additions and 3 deletions

View File

@@ -71,7 +71,8 @@ public class SecurityConfig {
new LoginUrlAuthenticationEntryPoint("/login"))
)
// Accept access tokens for User Info and/or Client Registration
.oauth2ResourceServer((oauth2) -> oauth2.jwt(Customizer.withDefaults()));
.oauth2ResourceServer((resourceServer) -> resourceServer
.jwt(Customizer.withDefaults()));
// @formatter:on
return http.build();

View File

@@ -75,8 +75,6 @@ TIP: Beyond the Getting Started experience, most users will want to customize th
If you want to customize the default configuration (regardless of whether you're using Spring Boot), you can define the minimum required components as a `@Bean` in a Spring `@Configuration`.
TIP: To skip the setup and run a working example, see the https://github.com/spring-projects/spring-authorization-server/tree/main/samples/default-authorizationserver[default authorization server sample].
These components can be defined as follows:
[[sample.gettingStarted]]