npm

Need private packages and team management tools?Check out npm Orgs. »

passport-sirap

1.0.1 • Public • Published

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

Keywords

none

install

npm i passport-sirap

Downloadsweekly downloads

1

version

1.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability