Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@feathersjs/authentication-oauth1

feathersjs154MIT1.1.1TypeScript support: definitely-typed

A Feathers OAuth1 authentication strategy

feathers, feathers-plugin

readme

@feathersjs/authentication-oauth1

Build Status Dependency Status Download Status

A Feathers OAuth1 authentication strategy

Installation

npm install @feathersjs/authentication-oauth1 --save

Quick example

const feathers = require('@feathersjs/feathers');
const authentication = require('feathers-authentication');
const jwt = require('feathers-authentication-jwt');
const oauth1 = require('@feathersjs/authentication-oauth1');
const session = require('express-session');
const TwitterStrategy = require('passport-twitter').Strategy;
const app = feathers();

// Setup in memory session
app.use(session({
  secret: 'super secret',
  resave: true,
  saveUninitialized: true
}));

// Setup authentication
app.configure(authentication(settings));
app.configure(jwt());
app.configure(oauth1({
  name: 'twitter',
  Strategy: TwitterStrategy,
  consumerKey: '<your consumer key>',
  consumerSecret: '<your consumer secret>'
}));

// Setup a hook to only allow valid JWTs to authenticate
// and get new JWT access tokens
app.service('authentication').hooks({
  before: {
    create: [
      authentication.hooks.authenticate(['jwt'])
    ]
  }
});

Documentation

Please refer to the @feathersjs/authentication-oauth1 documentation for more details.

License

Copyright (c) 2018

Licensed under the MIT license.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.1.1 (2019-01-26)

Bug Fixes

  • authentication: Fall back when req.app is not the application when emitting events (#1185) (6a534f0)

1.1.0 (2019-01-06)

Features

  • Make custom query for oAuth authentication (#1124) (5d43e3c)

1.0.10 (2019-01-02)

Bug Fixes

1.0.9 (2018-12-16)

Note: Version bump only for package @feathersjs/authentication-oauth1

1.0.8 (2018-10-25)

Bug Fixes

  • Make Mocha a proper devDependency for every repository (#1053) (9974803)

1.0.7 (2018-09-21)

Note: Version bump only for package @feathersjs/authentication-oauth1

1.0.6 (2018-09-17)

Note: Version bump only for package @feathersjs/authentication-oauth1

1.0.5 (2018-09-02)

Note: Version bump only for package @feathersjs/authentication-oauth1

1.0.4

v1.0.3 (2018-01-03)

Full Changelog

Merged pull requests:

v1.0.2 (2017-11-16)

Full Changelog

Closed issues:

  • No error handler? #34

Merged pull requests:

  • Add default ES module default exports to make TypeScript integration … #37 (daffl)
  • Update @feathersjs/authentication to the latest version 🚀 #36 (greenkeeper[bot])

v1.0.1 (2017-11-06)

Full Changelog

Merged pull requests:

v1.0.0 (2017-11-01)

Full Changelog

Merged pull requests:

  • Update dependencies for release #33 (daffl)

v1.0.0-pre.1 (2017-10-25)

Full Changelog

Merged pull requests:

  • Update to Feathers v3 #32 (daffl)
  • Rename repository and use npm scope #31 (daffl)
  • Update to new plugin infrastructure #30 (daffl)

v0.2.6 (2017-10-15)

Full Changelog

Closed issues:

  • An in-range update of feathers is breaking the build 🚨 #23
  • Log a warning if this.service.id is undefined or null #16

Merged pull requests:

v0.2.5 (2017-06-21)

Full Changelog

Closed issues:

  • Module is using the wrong default config key #17
  • When authenticating with stored localStorage jwt, payload doesn't have userId. #15
  • Support oauth1 endpoint within sub-app or reverse proxy #9
  • failureRedirect is not followed if it fails during OAuth dance #8

Merged pull requests:

v0.2.4 (2017-03-31)

Full Changelog

Closed issues:

  • userId is missing in jwt payload #5
  • accessToken is not returned when successRedirect is set #4

Merged pull requests:

  • Issue #9: Support oauth1 endpoint within sub-app or reverse proxy #11 (buske)
  • Issue #8: Follow failureRedirect on oauth1 authentication failure #10 (buske)

v0.2.3 (2016-12-14)

Full Changelog

v0.2.2 (2016-12-14)

Full Changelog

Merged pull requests:

  • setting __oauth value and fixing redirects #3 (ekryski)

v0.2.1 (2016-12-14)

Full Changelog

v0.2.0 (2016-11-23)

Full Changelog

Merged pull requests:

  • adding compatibility with payload generation #2 (ekryski)

v0.1.1 (2016-11-20)

Full Changelog

v0.1.0 (2016-11-19)

* This Change Log was automatically generated by github_changelog_generator