Oauth2 authentication example for Google Acounts
-
Software requirements:
- nodejs
- npm
-
Install the dependencies:
npm install
-
Configure OAuth2 credentials in config.js file (you will find them in Google Developers console once created the project)
-
Start example server
sudo node server
-
Connect to http://localhost to try the example
- Connect to http://localhost/logout to delete session cookies once you have logout Google Accounts