title: How to authenticate with Google via OAuth 2.0 in a popup?
body: <p>Sorry for a big edit. I am starting over as I am not stating my question correctly.</p>
  
  <p>I am trying to write a client side app in HTML5. I do not want it to be hosted on a website. I am not even sure this is possible, I am fairly new to this type of application.</p>
  
  <p>Anyway, I want to access Google services, which requires authenticate such as OAuth. Being that it is javascript, it sounds like OAuth2 is what I need. </p>
  
  <p>I am trying to open up the google authentication in a popup (I have this part), let the user allow access, and then pass flow back to my application which can then query Google services. Problem is either 1. it asks the user to copy/paste a token into the app whenever I use <code>response_type=code</code>, but if I use <code>response_type=token</code> it requires that I redirect back to a valid URL which, since this is not hosted on a webserver, there is none.</p>
  
  <p>So how can I use OAuth, and let the user grant access seamlessly?</p>