egg-passport-flyme
v1.0.1
Published
flyme passport for egg
Downloads
3
Readme
egg-passport-flyme
flyme passport plugin for egg
Install
$ npm i egg-passport-flyme --save
Usage
// {app_root}/config/plugin.js
exports.passportFlyme = {
enable: true,
package: 'egg-passport-flyme',
};
Configuration
// {app_root}/config/config.default.js
exports.passportFlyme = {
rsaPrivateKey: 'your rsa private key',
service:'your service name',
callbackURL:'/passport/flyme/callback'
};
*注: 无需在router.js中挂载鉴权路由, 只要配置好加载该插件时会自挂载 /passpost/flyme 和 /passport/flyme/callback
see config/config.default.js for more detail.
Questions & Suggestions
Please open an issue here.