0.1.7 • Published 11 years ago

passport-signature v0.1.7

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

Passport-Signature

Usage

Add "passport-signature" to your package.json file. Then, (sudo) npm install -l.

Config

Following thr Passport Strategy conventions, your settings should look like:

// Signature Strategy
passport.use(new SignatureStrategy({
  clientID: 'your-license',
  clientSecret: 'your-secret',
  callbackURL: 'http://your.app.com/auth/signature/return',
  providerURL: 'https://auth.signature.com/',
  profileURL: 'https://auth.signature.com/api/userinfo'
}, function (token, tokenSecret, profile, done) {
  compound.models.User.findOrCreate({
    signatureId: profile.id,
    profile: profile
  }, function (err, user) {
    done(err, user);
  });
}));

..etc.

Notes

Tested against the example project in this OAUTH2 provider repo.

###Thanks Jared Hanson

###License MIT

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago