Skip to content

Commit 45283b4

Browse files
committed
Expose default security configuration
Closes gh-110
1 parent 1428760 commit 45283b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

oauth2-authorization-server/src/main/java/org/springframework/security/config/annotation/web/configuration/OAuth2AuthorizationServerSecurity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@
3333
@Order(Ordered.HIGHEST_PRECEDENCE)
3434
public class OAuth2AuthorizationServerSecurity extends WebSecurityConfigurerAdapter {
3535

36-
// @formatter:off
3736
@Override
3837
protected void configure(HttpSecurity http) throws Exception {
38+
applyDefaultConfiguration(http);
39+
}
40+
41+
// @formatter:off
42+
public static void applyDefaultConfiguration(HttpSecurity http) throws Exception {
3943
OAuth2AuthorizationServerConfigurer<HttpSecurity> authorizationServerConfigurer =
4044
new OAuth2AuthorizationServerConfigurer<>();
4145
RequestMatcher[] endpointMatchers = authorizationServerConfigurer

0 commit comments

Comments
 (0)