From e2cb7a75458d83c1358faf9e19194b9ab8fe0454 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 25 Jan 2018 10:58:05 +0000 Subject: [PATCH] Align default scopes for Google with changes in Spring Security 5.0.1 Closes gh-11573 --- .../OAuth2ClientPropertiesRegistrationAdapterTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapterTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapterTests.java index 216db7a982..7c5e6c7651 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapterTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/client/OAuth2ClientPropertiesRegistrationAdapterTests.java @@ -119,8 +119,7 @@ public class OAuth2ClientPropertiesRegistrationAdapterTests { org.springframework.security.oauth2.core.AuthorizationGrantType.AUTHORIZATION_CODE); assertThat(adapted.getRedirectUriTemplate()) .isEqualTo("{baseUrl}/login/oauth2/code/{registrationId}"); - assertThat(adapted.getScopes()).containsExactly("openid", "profile", "email", - "address", "phone"); + assertThat(adapted.getScopes()).containsExactly("openid", "profile", "email"); assertThat(adapted.getClientName()).isEqualTo("Google"); } @@ -203,8 +202,7 @@ public class OAuth2ClientPropertiesRegistrationAdapterTests { org.springframework.security.oauth2.core.AuthorizationGrantType.AUTHORIZATION_CODE); assertThat(adapted.getRedirectUriTemplate()) .isEqualTo("{baseUrl}/login/oauth2/code/{registrationId}"); - assertThat(adapted.getScopes()).containsExactly("openid", "profile", "email", - "address", "phone"); + assertThat(adapted.getScopes()).containsExactly("openid", "profile", "email"); assertThat(adapted.getClientName()).isEqualTo("Google"); }