https://github.com/compwright/feathers-authentication-passport
Generic PassportJS strategy adapter for feathers-authentication
https://github.com/compwright/feathers-authentication-passport
feathers-authentication feathersjs passportjs
Last synced: 10 months ago
JSON representation
Generic PassportJS strategy adapter for feathers-authentication
- Host: GitHub
- URL: https://github.com/compwright/feathers-authentication-passport
- Owner: compwright
- License: mit
- Created: 2017-08-04T19:50:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-06T18:29:27.000Z (over 1 year ago)
- Last Synced: 2024-04-06T19:32:14.345Z (over 1 year ago)
- Topics: feathers-authentication, feathersjs, passportjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/feathers-authentication-passport
- Size: 1.06 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# feathers-authentication-passport
[](https://travis-ci.org/compwright/feathers-authentication-passport)
[](https://codeclimate.com/github/compwright/feathers-authentication-passport)
[](https://codeclimate.com/github/compwright/feathers-authentication-passport/coverage)
[](https://david-dm.org/compwright/feathers-authentication-passport)
[](https://www.npmjs.com/package/feathers-authentication-passport)
[](https://github.com/sponsors/compwright)
A generic [PassportJS](http://passportjs.org) strategy adapter for [feathers-authentication](https://github.com/feathersjs/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:
```js
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](LICENSE).