This application illustrates standard dialogs for obtaining a code and access token/refresh token without using passport or requiring application authentication.
- Authenication to Google at the server level in routes
- Authenication to Google at the client level using jQuery
A google application must be configured in the standard way. Including setting javascript origins and callback urls. See this tutorial for more
brew install mongodb
to run
- 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
node server.js (at root directory) http://localhost:3500