In order to use Google OAuth you must create a project at
and setup its credentials at .
In order to enable using scopes for retrieving user attributes, you should also enable Google+ API at
Example application configuration:
php
'components' => [
'authClientCollection' => [
'class' => 'yii\authclient\Collection',
'clients' => [
'google' => [
'class' => 'yii\authclient\clients\Google',
'clientId' => 'google_client_id',
'clientSecret' => 'google_client_secret',
],
],
]
...
]
See also:
https://console.developers.google.com/project