donhenton / node-google-popup

oauth2 for server using standard dialog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NODE-GOOGLE-POPUP

This application illustrates standard dialogs for obtaining a code and access token/refresh token without using passport or requiring application authentication.

Demonstrations available

  • Authenication to Google at the server level in routes
  • Authenication to Google at the client level using jQuery

Configuring google applications

A google application must be configured in the standard way. Including setting javascript origins and callback urls. See this tutorial for more

Running locally

Start Mongodb

brew install mongodb

to run

  1. create a mongod.conf file
#mongod.conf

#logs
logpath=/Users/dhenton/mongo_data/logs/mongolog.log
logappend=true


#path to database
dbpath=/Users/dhenton/mongo_data/db

run mongod -f /Users/dhenton/mongo_data/mongod.conf or mongod --dbpath=/Users/dhenton/mongo_data/db

Start node server

node server.js (at root directory) http://localhost:3500

About

oauth2 for server using standard dialog


Languages

Language:CSS 95.4%Language:JavaScript 3.5%Language:HTML 1.1%