$ npm i egg-aix-authorization --save
// {app_root}/config/plugin.js
exports.authorization = {
enable: true,
package: 'egg-aix-authorization',
};
// {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.
Please open an issue here.