title: gapi.auth.authorize() with immediate: false doesn't popup a window for authorization
body: <p>Below is a javascript which simply requests authorization to access user's spreadsheets:</p>
  
  <pre><code>var CLIENT_ID = '********';
  var SCOPES = [
      'https://www.googleapis.com/auth/spreadsheets'
  ];
  function auth() {
      gapi.auth.authorize({
          client_id: CLIENT_ID,
          immediate: true,
          scope: SCOPES
      }, function(result) {
          console.log('authorize(immediate = true)');
          if (result &amp;&amp; !result.error) {
              console.log('authorize [OK]');
          } else {
              console.log('authorize [FAILED]');
              gapi.auth.authorize({
                  client_id: CLIENT_ID,
                  immediate: false,
                  scope: SCOPES
              }, function(result) {
                  console.log('authorize(immediate = false)');
                  if (result &amp;&amp; !result.error) {
                      console.log('authorize [OK]');
                  } else {
                      console.log('authorize [FAILED]');
                  }
              });
          }
      });
  }
  </code></pre>
  
  <p>I believe it should do two things:</p>
  
  <ol>
  <li>Popup a window to login unless the user is already logged in.</li>
  <li>Popup a window to request authorization to access user's spreadsheets unless the authorization had been already granted earlier. After the authorization is granted the app should be listed under <a href="https://myaccount.google.com/security#connectedapps" rel="nofollow">Connected apps &amp; sites</a> and no more popup with authorization will be shown.</li>
  </ol>
  
  <p>I am testing this script with two distinct google accounts. One account works as expected and I get the following output on console:</p>
  
  <pre><code>auth.html:17 authorize(immediate = true)
  auth.html:21 authorize [FAILED]
  auth.html:27 authorize(immediate = false)
  auth.html:29 authorize [OK]
  </code></pre>
  
  <p>With another account the popup for authorization is not shown and authorization is always granted as If I pressed "Allow" or the app was listed under <em>Connected apps &amp; sites</em>, but it's not there. The console output is exactly the same.</p>
  
  <p>I have done these tests using two browsers:</p>
  
  <ul>
  <li>Version 51.0.2704.79 Built on 8.4, running on Debian 8.5 (64-bit)</li>
  <li>Firefox ESR 45.2.0, running on Debian 8.5 (64-bit)</li>
  </ul>
  
  <p>So, basically I have the following questions:</p>
  
  <ol>
  <li>Are my expectations regarding popups correct or the idea behind the gapi.auth.authorize() call with immediate:true or immediate:false is different?</li>
  <li>What can be the reason for this "misbehaving"? Is there any "sacred place" where the app is listed as authorized for some scope while the same app not shown under <em>Connected apps &amp; sites</em>?</li>
  </ol>
  
  <blockquote>
    <p>Note: The CLIENT_ID is listed in <strong>Google API Console</strong> under <em>OAuth
    2.0 client IDs</em>, the type is <em>Web application</em> and the owner is completely different account not related to the above mentioned two.</p>
  </blockquote>
  
  <p>Thanks.</p>