moauth2

1.0.5 • Public • Published

moauth2

Fork from loopback-component-oauth2^2.4.1 loopback-component-oauth2 与不使用的oAuth的常规API调用可能产生冲突(均使用?access_token=形式,oauth2模块在处理常规API调用的access_token时会返回unauthorized),因此对loopback-component-oauth2进行了修改,将/lib/strategy/mac/strategy.js的 line 94 修改为 return this.pass();

Install

Install the component as usual:

$ npm install moauth2

Use

Use in an application as follows:

var oauth2 = require('moauth2');
 
var options = {
  dataSource: app.dataSources.db, // Data source for oAuth2 metadata persistence
  loginPage: '/login', // The login page url
  loginPath: '/login' // The login form processing url
};
 
oauth2.oAuth2Provider(
  app, // The app instance
  options // The options
);

Readme

Keywords

Package Sidebar

Install

npm i moauth2

Weekly Downloads

0

Version

1.0.5

License

SEE LICENSE IN LICENSE.md

Last publish

Collaborators

  • littleswan