I am closely following the quickstart app. But still I run into a 403.
12:22:07.147 DEBUG o.s.web.client.RestTemplate:78 - Created POST request for "https://accounts.google.com/o/oauth2/token"
12:22:07.176 DEBUG o.s.web.client.RestTemplate:574 - Setting request Accept header to [application/json, application/*+json]
12:22:07.177 DEBUG o.s.web.client.RestTemplate:648 - Writing [{client_id=[644902935757.apps.googleusercontent.com], client_secret=[lceYhVTHrs17cjAghWBSbbkN], code=[4/rfuLIKajQsh39veII5a4cikOjMev.0havajV64jsaOl05ti8ZT3Ybvz2_fAI], redirect_uri=[http://localhost:8091/metronome/connect/google], grant_type=[authorization_code]}] as "application/x-www-form-urlencoded" using [org.springframework.http.converter.FormHttpMessageConverter@6d059fa4]
12:22:07.799 DEBUG o.s.web.client.RestTemplate:511 - POST request for "https://accounts.google.com/o/oauth2/token" resulted in 200 (OK)
12:22:07.801 DEBUG o.s.web.client.RestTemplate:91 - Reading [interface java.util.Map] as "application/json" using [org.springframework.http.converter.json.MappingJacksonHttpMessageConverter@c838bfb]
12:22:10.691 DEBUG o.s.web.client.RestTemplate:78 - Created GET request for "https://www.googleapis.com/oauth2/v2/userinfo"
12:22:10.702 DEBUG o.s.web.client.RestTemplate:574 - Setting request Accept header to [application/json, application/*+json]
12:22:11.198 WARN o.s.web.client.RestTemplate:524 - GET request for "https://www.googleapis.com/oauth2/v2/userinfo" resulted in 403 (Forbidden); invoking error handler
12:22:11.200 WARN o.s.s.connect.web.ConnectSupport:133 - HttpClientErrorException while completing connection: 403 Forbidden
12:22:11.200 WARN o.s.s.connect.web.ConnectSupport:134 - Response body: {
"error": {
"errors": [
{
"domain": "global",
"reason": "insufficientPermissions",
"message": "Insufficient Permission"
}
],
"code": 403,
"message": "Insufficient Permission"
}
}