1
0
mirror of synced 2026-08-03 08:51:58 +00:00

Flatten HttpSecurity.oauth2()

Fixes gh-5715
This commit is contained in:
Joe Grandja
2018-08-22 05:58:04 -04:00
parent 0f89e59707
commit ff6e1232c8
7 changed files with 86 additions and 200 deletions
@@ -147,10 +147,9 @@ public class OAuth2AuthorizationCodeGrantApplicationTests {
.authorizeRequests()
.anyRequest().authenticated()
.and()
.oauth2()
.client()
.authorizationCodeGrant()
.accessTokenResponseClient(this.accessTokenResponseClient());
.oauth2Client()
.authorizationCodeGrant()
.accessTokenResponseClient(this.accessTokenResponseClient());
}
// @formatter:on
@@ -41,8 +41,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.and()
.formLogin()
.and()
.oauth2()
.client();
.oauth2Client();
}
@Bean