Spring social doesn’t have autoconfiguration done for Google. So adding any new properties wont work. You need to find a class (Ctrl+Shift+T in eclipse) and look for FacebookAutoConfiguration class you should be able to find it in org.springframework.boot.autoconfigure.social package in spring-autoconfigure.jar
Copy this File and replace Facebook with Google.
Alternatively, copy the below class and put in some package, make sure it is available in classpath(src/main/java or inside another source folder)
Follow this Link for more details
@Configuration
@ConditionalOnClass({ SocialConfigurerAdapter.class, GoogleConnectionFactory.class })
@ConditionalOnProperty(prefix = "spring.social.google", name = "app-id")
@AutoConfigureBefore(SocialWebAutoConfiguration.class)
@AutoConfigureAfter(WebMvcAutoConfiguration.class)
public class GoogleAutoConfiguration {
@Configuration
@EnableSocial
@EnableConfigurationProperties(GoogleProperties.class)
@ConditionalOnWebApplication
protected static class GoogleConfigurerAdapter extends SocialAutoConfigurerAdapter {
private final GoogleProperties properties;
protected GoogleConfigurerAdapter(GoogleProperties properties) {
this.properties = properties;
}
@Bean
@ConditionalOnMissingBean(Google.class)
@Scope(value = "request", proxyMode = ScopedProxyMode.INTERFACES)
public Google google(ConnectionRepository repository) {
Connection connection = repository.findPrimaryConnection(Google.class);
return connection != null ? connection.getApi() : null;
}
@Bean(name = { "connect/googleConnect", "connect/googleConnected" })
@ConditionalOnProperty(prefix = "spring.social", name = "auto-connection-views")
public GenericConnectionStatusView googleConnectView() {
return new GenericConnectionStatusView("google", "Google");
}
@Override
protected ConnectionFactory<?> createConnectionFactory() {
return new GoogleConnectionFactory(this.properties.getAppId(), this.properties.getAppSecret());
}
}
}
Now Add GoogleProperties
In the same package add the below class
import org.springframework.boot.autoconfigure.social.SocialProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "spring.social.google")
public class GoogleProperties extends SocialProperties{
}
For more explanation and step by step guide follow this link