Skip to content
Credential Management Sample
Branch: master
Clone or download
Latest commit 1104deb Mar 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib initial commit Jan 7, 2016
static Better feature detections Mar 8, 2018
templates Enabled hybrid between old and new CM APIs. Jun 9, 2017
.babelrc Updates reflecting feedback Jun 2, 2017
.bowerrc initial commit Jan 7, 2016
.gitignore fix indentation, ignore `env`, added `autocomplete` Apr 11, 2016
.gitmodules initial commit Jan 7, 2016
CONTRIBUTING.md Added CSRF token support Feb 8, 2016
LICENSE Added CSRF token support Feb 8, 2016
README.md Updated README Jun 22, 2017
app.yaml
bower.json Enabled hybrid between old and new CM APIs. Jun 9, 2017
main.py Upgrade to the latest Credential Management API Jun 1, 2017
package-lock.json Upgrade to the latest Credential Management API Jun 1, 2017
package.json Updates reflecting feedback Jun 2, 2017
requirements.txt initial commit Jan 7, 2016

README.md

Credential Management API Sample

Installation

Prerequisites

  • Google App Engine
  • Python 2.7
  • pip
  • Node.js
  • NPM
  • Bower

Step 1. Configure Google Sign-In

  • Set up a new project at Google Developers Console
  • Create credentials
  • Download client_secret_****.json, rename it to client_secrets.json
  • Place client_secrets.json at root of this project

Step 2. Configure Facebook Login

  • Set up a new project at Facebook Developers
  • Set "Site URL" http://localhost:8080
  • Copy and paste the App ID in app.yaml.

Step 3. Install dependencies

# Create virtual env
$ virtualenv env
$ source env/bin/activate
# Clone submodules
$ git submodule init
$ git submodule update
# This command will install dependencies
$ npm install
$ npm run build

Step 4. Run the app

# Launch App Engine at root dir of this project with following command
$ npm start
You can’t perform that action at this time.