|
@@ -33,9 +33,13 @@ import static org.springframework.security.config.Customizer.withDefaults;
|
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
|
public class OAuth2AuthorizationServerSecurity extends WebSecurityConfigurerAdapter {
|
|
public class OAuth2AuthorizationServerSecurity extends WebSecurityConfigurerAdapter {
|
|
|
|
|
|
- // @formatter:off
|
|
|
|
@Override
|
|
@Override
|
|
protected void configure(HttpSecurity http) throws Exception {
|
|
protected void configure(HttpSecurity http) throws Exception {
|
|
|
|
+ applyDefaultConfiguration(http);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // @formatter:off
|
|
|
|
+ public static void applyDefaultConfiguration(HttpSecurity http) throws Exception {
|
|
OAuth2AuthorizationServerConfigurer<HttpSecurity> authorizationServerConfigurer =
|
|
OAuth2AuthorizationServerConfigurer<HttpSecurity> authorizationServerConfigurer =
|
|
new OAuth2AuthorizationServerConfigurer<>();
|
|
new OAuth2AuthorizationServerConfigurer<>();
|
|
RequestMatcher[] endpointMatchers = authorizationServerConfigurer
|
|
RequestMatcher[] endpointMatchers = authorizationServerConfigurer
|