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 = ; var options = dataSource: appdataSourcesdb // Data source for oAuth2 metadata persistence loginPage: '/login' // The login page url loginPath: '/login' // The login form processing url; oauth2;