This is a sample project that shows how one can use the Google authentication, and also how to store files in the user's Drive.
For a more detailed description, check out these 2 blog posts:
For a live demo, see this link
Just clone the repo, host the files on a web server of your choice and open index.html in a browser.
Note: The app must listen on port 8080, because that is the only whitelisted origin
- Register a new project at the Google Developers Console
- Create a new Client ID for a Web Application
- Add a valid origin
- Take note of the Client ID
- Enable Drive API
- At the gapi-auth-service there is a client id, change it to your project's