Remove address and phone from default scope for Google

Fixes gh-4895
This commit is contained in:
Kazuki Shimizu
2017-12-03 13:28:01 +09:00
committed by Joe Grandja
parent bd5d0bc6fd
commit 9f6af4f3b8
2 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ public enum CommonOAuth2Provider {
public Builder getBuilder(String registrationId) {
ClientRegistration.Builder builder = getBuilder(registrationId,
ClientAuthenticationMethod.BASIC, DEFAULT_LOGIN_REDIRECT_URL);
builder.scope("openid", "profile", "email", "address", "phone");
builder.scope("openid", "profile", "email");
builder.authorizationUri("https://accounts.google.com/o/oauth2/v2/auth");
builder.tokenUri("https://www.googleapis.com/oauth2/v4/token");
builder.jwkSetUri("https://www.googleapis.com/oauth2/v3/certs");