title: creating oauth login flow for java desktop application
body: <p>I was watching the java quickstart video for the google drive API and in that video it is <br>mentioned that when developing real time console application the login flow should be done by : <br>   </p>
  
  <ol>
  <li><p>starting a web browser in the local machine.<br></p></li>
  <li><p>opening the native browser and taking the user directly to the authorization link. <br></p></li>
  <li><p>making the redirection link as the local host and then let the local server receive the code and then shut down the browser and continue with you app.<br></p></li>
  </ol>
  
  <p>but i have no idea how to execute these steps any idea or guidance???</p>