title: gcloud auth application-default print-access-token error: "invalid_grant: Bad Request"
body: <p>I'm trying to do the <a href="https://cloud.google.com/speech/docs/getting-started" rel="noreferrer">tutorial</a> for Google Cloud Speech. I did the first two steps successfully. The response from Step 2 is:</p>
  
  <pre><code>Activated service account credentials for: [my-service-account@cloud-speech-quickstart.iam.gserviceaccount.com]
  </code></pre>
  
  <p>The third step says:</p>
  
  <pre><code>3. Obtain an authorization token using your service account:
  
  gcloud auth application-default print-access-token
  access_token
  </code></pre>
  
  <p>I presume that this means, go to your CLI and enter:</p>
  
  <pre><code>gcloud auth application-default print-access-token
  </code></pre>
  
  <p>I get back this error message:</p>
  
  <pre><code>    ERROR: (gcloud.auth.application-default.print-access-token) There was a problem refreshing your current auth tokens: invalid_grant: Bad Request
  Please run:
  
    $ gcloud auth login
  
  to obtain new credentials, or if you have already logged in with a
  different account:
  
    $ gcloud config set account ACCOUNT
  
  to select an already authenticated account to use.
  </code></pre>
  
  <p>I presume this is telling me to go to the CLI and enter:</p>
  
  <pre><code>gcloud auth login
  </code></pre>
  
  <p>A webpage then opens that says:</p>
  
  <pre><code>Choose an account
  to continue to Google Cloud SDK
  </code></pre>
  
  <p>I select my Google account and it goes to a screen that says:</p>
  
  <pre><code>Google Cloud SDK wants to
      View and manage your applications deployed on Google App Engine More info
      View and manage your Google Compute Engine resources    More info
      View and manage your data across Google Cloud Platform services More info
  Allow Google Cloud SDK to do this?
  </code></pre>
  
  <p>I click <code>Allow</code> and it goes to a screen that says </p>
  
  <pre><code>You are now authenticated with the Google Cloud SDK!
  </code></pre>
  
  <p>However, the webpage doesn't give me an access token. Back on the command line I have this message:</p>
  
  <pre><code>You are now logged in as [thomasdkehoe@gmail.com].
  Your current project is [cloud-speech-quickstart].
  </code></pre>
  
  <p>That looks pretty good, but still no access token. If I re-enter</p>
  
  <pre><code>gcloud auth application-default print-access-token
  </code></pre>
  
  <p>I get the original error message. Is there any way to get out of this loop? Should I try <code>gcloud auth revoke</code>?</p>