title: "This app would like to: Have offline access" when access_type=online
body: <p>I have a Google App with OAuth 2.0 authentication. Everything used to work fine but recently I started getting the following "Request for permission" screen:</p>
  
  <p><img src="https://i.stack.imgur.com/Lgoby.png" alt="enter image description here"></p>
  
  <p>The strange part is that I get this screen when I pass <code>access_type=online</code>. Again, this used to work until recently.</p>
  
  <p>What can be the cause for this? TIA</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>The requested scopes are:</p>
  
  <pre><code>https://www.googleapis.com/auth/userinfo.email
  https://www.googleapis.com/auth/userinfo.profile
  </code></pre>
  
  <p>I have already tried:</p>
  
  <ul>
  <li>with and without <code>access_type=online</code></li>
  <li>with and without <code>approval_prompt=auto</code></li>
  </ul>
  
  <p><strong>Edit #2:</strong></p>
  
  <p>This is the python code I'm using to generate the authentication URL:</p>
  
  <pre><code>encoded_params = urllib.urlencode({
      "response_type" : "code",
      "client_id" : MY_CLIENT_ID,
      "scope" : " ".join(MY_SCOPES),
      "redirect_uri" : MY_REDIRECT_URI,
      "state" : random_security_token,
      "access_type" : "online",
      "approval_prompt" : "auto",
      })
  
  auth_url = "https://accounts.google.com/o/oauth2/auth?" + encoded_params
  </code></pre>
  
  <p><strong>Update (Oct. 14):</strong></p>
  
  <p>Even with the new scopes, I still get the consent screen. Recently I got it for a new device I was using for the authentication.</p>