1.2.1 • Published 3 years ago

egg-aix-authorization v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

egg-aix-authorization

NPM version build status Test coverage David deps Known Vulnerabilities npm download

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.

License

MIT

1.2.0

3 years ago

1.2.1

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago