Polish gh-1186
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user