How to use the passport-http-bearer.Strategy.call function in passport-http-bearer

To help you get started, we’ve selected a few passport-http-bearer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure-Samples / active-directory-node-webapi / node-server / lib / passport-azure-ad / oidcstrategy.js View on Github external
log.info("We did pass Req back to Callback")
        verify(req, token, done);
      } else {
        log.info("We did not pass Req back to Callback")
        verify(token, done);
      }
    }
    });
}

var opts = {};
  opts.passReqToCallback = true;

  log.info('Req: ' + options.passReqToCallback);

    BearerStrategy.call(this, options, jwtVerify);

    this.name = 'oidc-bearer'; // Me, a name I call myself.
}

passport-http-bearer

HTTP Bearer authentication strategy for Passport.

MIT
Latest version published 11 years ago

Package Health Score

56 / 100
Full package analysis

Similar packages