Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rbecheras/passport-sirap
SIRAP-Group authentication strategy for Passport and Node.js.
https://github.com/rbecheras/passport-sirap
Last synced: about 2 months ago
JSON representation
SIRAP-Group authentication strategy for Passport and Node.js.
- Host: GitHub
- URL: https://github.com/rbecheras/passport-sirap
- Owner: rbecheras
- Created: 2016-01-25T00:34:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-02T17:12:08.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T23:29:52.983Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prerequis
- Gitlab >= 7.7
- node.js >= 0.4.0# Installation dans le client
npm install passport-sirap
# Usage
```
var SirapStrategy = require('passport-sirap').Strategy;passport.use(new SirapStrategy({
clientID: SIRAP_APP_KEY,
clientSecret: SIRAP_APP_SECRET,
sirapURL : SWAP_AUTH_SERVER_URL,
callbackURL: "http://127.0.0.1:3000/auth/sirap/callback"
},
function(token, tokenSecret, profile, done) {
User.findOrCreate({ id: profile.id }, function (err, user) {
return done(err, user);
});
}
));
```