https://github.com/amulyakashyap09/githubauthentication
A simple application that demonstrates the github authentication mechanism in nodejs
https://github.com/amulyakashyap09/githubauthentication
authentication expressjs github nodejs passport passport-github
Last synced: about 1 year ago
JSON representation
A simple application that demonstrates the github authentication mechanism in nodejs
- Host: GitHub
- URL: https://github.com/amulyakashyap09/githubauthentication
- Owner: amulyakashyap09
- Created: 2018-10-06T15:17:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-06T15:25:43.000Z (over 7 years ago)
- Last Synced: 2025-01-07T09:47:18.038Z (about 1 year ago)
- Topics: authentication, expressjs, github, nodejs, passport, passport-github
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenGift Github login/registration
OpenGift Github login/registration enables users to login / signup using github
## Installation
### Requirements
* Linux/Windows/Mac
* Node > 7.4.x
## Usage
### Pre-requisites
```
1. Register your application on github.com
2. GOTO https://github.com/settings/applications/new
3. SET clientID, clientSecret, callbackURL
```
```
4. COPY All three keys to your application file name ~/Desktop/giftopen/app.js
// app.js
passport.use(new GithubStrategy({
clientID: 'your app client id',
clientSecret: 'your app client secret',
callbackURL: 'http://localhost:3000/auth/callback'
}, function(accessToken, refreshToken, profile, done){
done(null, {
accessToken: accessToken,
profile: profile
});
}));
5. cd ~/Desktop/giftopen
6. npm install
7. npm start
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)