Generic PassportJS strategy adapter for feathers-authentication
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
example
src
test
.editorconfig
.gitignore
.istanbul.yml
.npmignore
CHANGELOG.md
LICENSE
README.md
package.json

README.md

feathers-authentication-passport

A generic PassportJS strategy adapter for feathers-authentication.

Installation

npm install feathers-authentication-passport --save

Compatibility

  • feathers-authentication@1.x and above

Usage

In most cases initializing the feathers-authentication-passport module is as simple as doing this:

app.configure(authentication(settings));
app.configure(passportAuthentication({
  name: settings.passport.name, // defaults to 'passport' if not specified
  strategy: new PassportStrategy(settings.passport, Verifier) // required
}));

See the examples/ directory for a complete example.

License

Copyright (c) 2017

Licensed under the MIT license.