passport-presspass

v0.0.1
PressPass OAuth2 + OIDC strategy for Passport.
passport presspass news newscatalyst authentication identity

Passport PressPass

PassportJS is a popular authentication system for Node apps. This simple module provides plug-and-play support for integrating PressPass authentication into your application.

Quick Start

passport.use(new PressPassStrategy({
    clientID: '<your client secret>',
    callbackURL: '<your callback url>',
  },
  function(iss, sub, profile, verified) {
    // 'Profile' contains tons of user information, including a user's organizations!
    process.nextTick(function () {
      return verified(null, profile)
    });
  }
));

Note that most of the information is embedded in profile._raw, because it is not specified by the OpenID Connect spec and is therefore not automatically inserted into the profile object.

LICENSE

MIT (see LICENSE)

npm i passport-presspass

Metadata

  • Unknown
  • >= 0.4.0
  • Unknown
  • released 12/11/2019

Downloads

Maintainers