From a54898b8f56e0250ab8f2083a54f6fe50103b116 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 28 Aug 2018 13:56:03 -0700 Subject: [PATCH] Remove explicit call to `authorizationCodeGrant` See gh-13812 --- .../oauth2/client/servlet/OAuth2WebSecurityConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/servlet/OAuth2WebSecurityConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/servlet/OAuth2WebSecurityConfiguration.java index caf65cae9e..44acc664d7 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/servlet/OAuth2WebSecurityConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/client/servlet/OAuth2WebSecurityConfiguration.java @@ -61,7 +61,7 @@ class OAuth2WebSecurityConfiguration { @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().anyRequest().authenticated().and().oauth2Login() - .and().oauth2Client().authorizationCodeGrant(); + .and().oauth2Client(); } }