oauth-4-laravel
oauth-4-laravel copied to clipboard
Google Login Problem - Deprecated Scopes and Token Exchange Uri
I'm trying to get the access token from code obtained on the frontend. But its throws a very undescriptive TokenResponseException. I'm passing the right redirect_uri. I guess the problem is with scopes. On the frontend, the scopes are [https://www.googleapis.com/auth/plus.me profile email] and according to the documentation here it should be ['userinfo_email', 'userinfo_profile'] which is deprecated.
[2015-07-03 18:35:52] production.ERROR: exception 'OAuth\Common\Http\Exception\TokenResponseException' with message 'Failed to request resource.' in /Users/param/Documents/code/LookManagerApi/workbench/p/auth/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php:68 Stack trace: #0 /Users/param/Documents/code/LookManagerApi/workbench/p/auth/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(118): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), Array, Array) #1 /Users/param/Documents/code/LookManagerApi/workbench/p/auth/src/P/Auth/Strategy/Providers/Google.php(15): OAuth\OAuth2\Service\AbstractService->requestAccessToken('4/60kJJ4qr3gGoW...')