Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

What is this?

This Apigee API proxy should be used when you have an web App that needs to interact with Google and Apigee. You want to submit the request to authenticate the user but you don't want to store the Google credentials in the web App.

You have the App call this proxy and which invokes the Google API with the Google credentials stored in the config.js file. Google returns an access_token for this authenticated user to the App (along with other profile info).

Using a proxy allows you to capture analytics on the caller, place in quotas / spike arrests before calling Google.

Requirements

  1. You will need to have an account with Google and register to use Google+ API for SSO with Google - https://console.developers.google .com/project/app-sso-1020/apiui/apiview/plus/overview
  2. You need an Apigee Edge account; get one for free - https://developers.apigee .com/get-started
  3. Get this - https://github.com/apigee/apigeetool-node
  4. Copy the dummy_config.js file as config.js and enter your credentials.
  5. Then, create a deployNodeApp.bash file that is similar to:

#!/usr/bin/env bash
apigeetool deploynodeapp \
-n generic_google_login \
-d ./ \
-m server.js \
-o <> \
-e test \
-b /generic_google_login \
-u <>

Deployment of proxy

You should be able to download this package, and...


cd apiproxy/resources/node
npm install <> ./   #local node-modules dir
bash deployNodeApp.bash (should ask you for your password)

And, you should be set!

Enhancements, bugs

Use GitHub to track all of the above

About

An Apigee API proxy to allow an App to use Google to authenticate the user.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages