瀏覽代碼

Polish gh-1186

Joe Grandja 2 年之前
父節點
當前提交
79c6cf4ed2

+ 2 - 1
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();

+ 0 - 2
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]]