Skip to content
This repository was archived by the owner on Apr 20, 2021. It is now read-only.

Make the library compatible with passportjs #2

@kurtdb

Description

@kurtdb

Not exactly a bug, but more of a feature request.

To perform authentication using external platforms on NodeJS, passportjs (http://passportjs.org/) is a very popular library. It provides very easy integrations for different platforms (atm 307 different platforms are supported). Maybe it could be interesting to make this library compatible so people don't have to use yet another library?

An example of how the authentication could be possible through their API:

passport.use(new IBMSSOStrategy({
    callbackURL: "<the url that is to be redirected to>"
  },
  function(token, tokenSecret, profile, done) {
    // asynchronous verification, for effect...
    process.nextTick(function () {
      return done(null, profile);
    });
  }
));

app.get('/auth/ibmsso',
  passport.authenticate('ibm-sso'),
  function(req, res){
    // The request will be redirected to IBM-SSO for authentication, so this
    // function will not be called.
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions