philhawksworth/viewportify — pull request #1 by edds (2014-11-16 13:28:56+00:00)
Title: Add basic oAuth setup to auto-fill resolutions

Add in an oAuth setup to the make page. It will now display a link which
will start an oAuth flow. Once the flow is complete the drop downs will
fill in the relevent options so a user can select the profile they want
to use.

It uses the JavaScript Google oAuth flow so no information about the
user ever gets sent back to the server and it will all be gone on page
refresh. This might want to be changed to cache the user or their
options in the future.

TODO:

- Display a loading indicator while requesting Ajax data
- Handle errors
- Automatically pick the account/property/profile if there is only 1 option
- Add some stylin' so it looks better

You will either want to update the client_id to a one you own (which you
can register on the [api console](https://console.developers.google.com/project)).
Or I can make you an owner on the project I created and you can just use that.

![screen shot 2014-11-16 at 13 27 12](https://cloud.githubusercontent.com/assets/35035/5061577/4de13b12-6d94-11e4-89f9-c578e34ffff6.png)