Google Sign-In for Websites sample code
This sample code assumes you watch "Google Sign-In for Websites" videos.
Each videos have related section in this code example
- Introduction to Google Sign-In for Websites
- Google Sign-In for Websites: Authentication with backends
- main.py
- "/"
- "/validate"
- static/scripts/authentication_with_backends.js
- main.py
- Google Sign-In for Websites: Authorization
- Making API requests from client side
- Making API requests from server side
- main.py
- "/"
- "/api"
- "/validate"
- "/code"
- static/scripts/authorization_server.js
- main.py
Installation
Prerequisite
- Google App Engine
- Python 2.7
- pip
- Node.js
- Bower
Configure
- Set up a new project at Google Developers Console
- Create credentials
- Download
client_secret_****.json
, rename it toclient_secrets.json
- Place
client_secrets.json
at root of this project
Build
# Install Python dependencies
$ pip install -t lib -r requirements.txt
# Install front-end dependencies
$ bower install
Run
# Launch App Engine at root dir of this project with following command
$ dev_appserver.py .