diff --git a/docs/src/docs/asciidoc/examples/src/main/java/sample/gettingStarted/SecurityConfig.java b/docs/src/docs/asciidoc/examples/src/main/java/sample/gettingStarted/SecurityConfig.java index 3c1c9ef7..6fa61d27 100644 --- a/docs/src/docs/asciidoc/examples/src/main/java/sample/gettingStarted/SecurityConfig.java +++ b/docs/src/docs/asciidoc/examples/src/main/java/sample/gettingStarted/SecurityConfig.java @@ -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(); diff --git a/docs/src/docs/asciidoc/getting-started.adoc b/docs/src/docs/asciidoc/getting-started.adoc index 43b95f23..fe6b2609 100644 --- a/docs/src/docs/asciidoc/getting-started.adoc +++ b/docs/src/docs/asciidoc/getting-started.adoc @@ -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]]