passport-sirap

SIRAP-Group authentication strategy for Passport and Node.js.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

2

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

2

License

Type Definitions

Tree-Shakeable

No?

Categories

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);
    });
  }
));

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial