egg-aix-authorization
v1.2.1
Published
aix authorization
Downloads
15
Readme
egg-aix-authorization
Install
$ npm i egg-aix-authorization --save
Usage
// {app_root}/config/plugin.js
exports.authorization = {
enable: true,
package: 'egg-aix-authorization',
};
Configuration
// {app_root}/config/config.default.js
exports.authorization = {
gatewayCompatible: true, // 兼容玉符网关
smartProxyCompatible: true, // 兼容SmartProxy
jwtCookieName: 'aix-jwt-sso', // jwt cookie name
clientSecret: 'xxx',
errorCode: 30000,
errorMessage: 'user not login',
ignorePaths: [ '/api/auth/login', '/api/auth/login-callback', '/api/auth/logout' ], // 不校验登录态的路径
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.