Skip to content

compwright/feathers-authentication-passport

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

feathers-authentication-passport

Build Status Code Climate Test Coverage Dependency Status Download Status Sponsor on GitHub

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.