I would like to use Google OAuth in my cakePHP application to let the users login with their google account. I looked at the following component: http://code.42dh.com/oauth/ . S
I think the issue is the querystring in the request token url. Try the following:
$REQUEST_TOKEN_URL = 'https://www.google.com/accounts/OAuthGetRequestToken';
$requestToken = $this->OauthConsumer->getRequestToken('Google', $REQUEST_TOKEN_URL, 'http://mydomain.com/example/google_callback', 'GET', array('scope' => 'https://www.google.com/m8/feeds'));
You forgot the Public API Access key and url referers allowed to connect with your cliend ID and secret key...
Create a public API access, and add it in your settings.
Check here for an updated CakePHP 3 tutorial and plugin: