Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/girish1729/oauthsample
Simple oauth2 example connector for facebook and Google's gmail or Google apps
https://github.com/girish1729/oauthsample
Last synced: 5 days ago
JSON representation
Simple oauth2 example connector for facebook and Google's gmail or Google apps
- Host: GitHub
- URL: https://github.com/girish1729/oauthsample
- Owner: girish1729
- Created: 2014-09-18T00:48:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-18T00:54:23.000Z (about 10 years ago)
- Last Synced: 2024-05-01T13:54:03.673Z (7 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OAuth2 for facebook and Gmail
We will be using Passport to authenticate users with Facebook, and Gmail.
## Instructions
If you would like to download the code and try it for yourself:
1. Clone the repo: `git clone https://github.com/girish1729/oauthsample`
2. Install packages: `npm install`
3. Change out auth credentials in auth.js
4. Launch: `npm start`
5. Visit in your browser at: `http://localhost:3000`## Other details
I think it is rather easy to setup Oauth2 protocol but the boring part
is setting up your app to access the facebook and Google auth provider.
Once that is done your code can be used to show anyone's credentials.
This can be used in e-commerce websites as well as other login based
websites.Note that it is vital that you setup your local app to access facebook
or google through the port you configure in the facebook and Google auth
provider UI. You cannot run your app on a different port and expect it
to work.## Contact
You are free to mail me at [email protected] for any questions.