title: yii2, google outh2 and scope
body: <p>I am using Yii2, GoogleOAuth and yii2-user extension. I want to receive user google circles and set scope to my config:</p>
  
  <pre><code>'authClientCollection' =&gt; [
          'class' =&gt; 'yii\authclient\Collection',
          'clients' =&gt; [
              'google' =&gt; [
                  'class' =&gt; 'yii\authclient\clients\GoogleOAuth',
                  'clientId' =&gt; '758709912345-p4qp4lqihit5un1u6qb75msqp5m5j6d8.apps.googleusercontent.com',
                  'clientSecret' =&gt; 'ZygOIi1-0asfktUQ1pKOFOo',
                  'scope' =&gt; 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/drive',
              ],
          ],
      ]
  </code></pre>
  
  <p>When I login with Google OAuth2 I had error:</p>
  
  <blockquote>
    <p>Exception – yii\authclient\InvalidResponseException
    Request failed with code: 400, message: {
    "error" : "redirect_uri_mismatch"
    }</p>
  </blockquote>
  
  <p>Google response:</p>
  
  <pre><code>[
  'url' =&gt; 'https://accounts.google.com/o/oauth2/token'
  'content_type' =&gt; 'application/json'
  'http_code' =&gt; 400
  'header_size' =&gt; 435
  'request_size' =&gt; 644
  'filetime' =&gt; -1
  'ssl_verify_result' =&gt; 0
  'redirect_count' =&gt; 0
  'total_time' =&gt; 0.115431
  'namelookup_time' =&gt; 0.001186
  'connect_time' =&gt; 0.025188
  'pretransfer_time' =&gt; 0.076275
  'size_upload' =&gt; 456
  'size_download' =&gt; 39
  'speed_download' =&gt; 337
  'speed_upload' =&gt; 3950
  'download_content_length' =&gt; -1
  'upload_content_length' =&gt; 456
  'starttransfer_time' =&gt; 0.114206
  'redirect_time' =&gt; 0
  'certinfo' =&gt; []
  'primary_ip' =&gt; '2a00:1450:4010:c08::54'
  'primary_port' =&gt; 443
  'local_ip' =&gt; '2a03:6f00:1::5c35:726b'
  'local_port' =&gt; 33160
  'redirect_url' =&gt; ''
  </code></pre>
  
  <p>]</p>
  
  <p>When I removed from the configuration Google+ scope(<a href="https://www.googleapis.com/auth/plus.login" rel="noreferrer">https://www.googleapis.com/auth/plus.login</a>) authorization go with out error and Google response is:</p>
  
  <pre><code>[
  'url' =&gt; 'https://accounts.google.com/o/oauth2/token'
  'content_type' =&gt; 'application/json; charset=utf-8'
  'http_code' =&gt; 200
  'header_size' =&gt; 522
  'request_size' =&gt; 526
  'filetime' =&gt; -1
  'ssl_verify_result' =&gt; 0
  'redirect_count' =&gt; 0
  'total_time' =&gt; 0.13719
  'namelookup_time' =&gt; 0.001212
  'connect_time' =&gt; 0.026261
  'pretransfer_time' =&gt; 0.079765
  'size_upload' =&gt; 338
  'size_download' =&gt; 900
  'speed_download' =&gt; 6560
  'speed_upload' =&gt; 2463
  'download_content_length' =&gt; -1
  'upload_content_length' =&gt; 338
  'starttransfer_time' =&gt; 0.136241
  'redirect_time' =&gt; 0
  'certinfo' =&gt; []
  'primary_ip' =&gt; '2a00:1450:4010:c08::54'
  'primary_port' =&gt; 443
  'local_ip' =&gt; '2a03:6f00:1::5c35:726b'
  'local_port' =&gt; 37583
  'redirect_url' =&gt; ''
  </code></pre>
  
  <p>]</p>
  
  <p>Problem only in https: //www.googleapis.com/auth/plus.login . My enabled APIs: <a href="http://minus.com/lJ5nw7caXJApD" rel="noreferrer">http://minus.com/lJ5nw7caXJApD</a></p>