Browse Source

Polish gh-1186

pull/1212/head
Joe Grandja 3 years ago
parent
commit
79c6cf4ed2
  1. 3
      docs/src/docs/asciidoc/examples/src/main/java/sample/gettingStarted/SecurityConfig.java
  2. 2
      docs/src/docs/asciidoc/getting-started.adoc

3
docs/src/docs/asciidoc/examples/src/main/java/sample/gettingStarted/SecurityConfig.java

@ -71,7 +71,8 @@ public class SecurityConfig { @@ -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();

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 @@ -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]]

Loading…
Cancel
Save