title: Authorizing client libraries without access to a web browser - gcloud auth application-default login
body: <p>When I use to run either command:
  <code> gcloud auth application-default login</code>
  OR for a specific docker container
  <code>docker exec -it 822c4c491383 /home/astro/google-cloud-sdk/bin/gcloud auth application-default login</code>.</p>
  <p>My command line would give me a link to a google response page where I'd copy the code they gave me and write it in the command line.</p>
  <p>For some reason now, whenever I try to do either command I'm getting the follow error, saying I don't have access to web browser.</p>
  <blockquote>
  <p><em>You are authorizing client libraries without access to a web browser. Please run the following command on a machine with a web browser and
  copy its output back here. Make sure the installed gcloud version is
  372.0.0 or newer.</em></p>
  <p><em>gcloud auth application-default login --remote-bootstrap=&quot;https://accounts.google.com/o/oauth2/auth?response_type=code&amp;client_id=764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com&amp;scope=openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Faccounts.reauth&amp;state=FmMFY6gvpOa9xndMXmWiNG3W1jDrCe&amp;access_type=offline&amp;code_challenge=zUI4n_pnYE5V7p0diDQLmL0X0Sk8XpTDzhz_vwtukOo&amp;code_challenge_method=S256&amp;token_usage=remote&quot;</em></p>
  </blockquote>
  <p>I've tried copying the link that's inside of this and place it in my web browser but I get a page saying.</p>
  <blockquote>
  <p><em>Error 400: invalid request</em> Missing required parameter:  redirect uri</p>
  </blockquote>
  <p>Edit: Though not sure why this is happening now, I added the option &quot;--no-launch-browser&quot; to the end of both commands and it gives me the link to place in my browser now manually and copy code.</p>