├── .editorconfig ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmrc ├── .prettierrc ├── .releaserc.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── index.ts ├── jest.config.js ├── package.json ├── renovate.json ├── src ├── authz.constants.ts ├── authz.guard.ts ├── authz.module.ts ├── decorators │ ├── index.ts │ └── use-permissions.decorator.ts ├── index.ts ├── interfaces │ ├── authz-module-options.interface.ts │ ├── index.ts │ └── permission.interface.ts ├── services │ ├── authz-api.ts │ ├── authz-management.service.ts │ ├── authz-rbac.service.ts │ ├── authz.service.ts │ └── index.ts └── types.ts ├── test ├── authz.guard.spec.ts └── use-permissions.decorator.spec.ts ├── tsconfig.json ├── tslint.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | package-lock=false 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/.releaserc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/README.md -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- 1 | export * from './src'; 2 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/renovate.json -------------------------------------------------------------------------------- /src/authz.constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/authz.constants.ts -------------------------------------------------------------------------------- /src/authz.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/authz.guard.ts -------------------------------------------------------------------------------- /src/authz.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/authz.module.ts -------------------------------------------------------------------------------- /src/decorators/index.ts: -------------------------------------------------------------------------------- 1 | export * from './use-permissions.decorator'; 2 | -------------------------------------------------------------------------------- /src/decorators/use-permissions.decorator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/decorators/use-permissions.decorator.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/authz-module-options.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/interfaces/authz-module-options.interface.ts -------------------------------------------------------------------------------- /src/interfaces/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/interfaces/index.ts -------------------------------------------------------------------------------- /src/interfaces/permission.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/interfaces/permission.interface.ts -------------------------------------------------------------------------------- /src/services/authz-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/services/authz-api.ts -------------------------------------------------------------------------------- /src/services/authz-management.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/services/authz-management.service.ts -------------------------------------------------------------------------------- /src/services/authz-rbac.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/services/authz-rbac.service.ts -------------------------------------------------------------------------------- /src/services/authz.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/services/authz.service.ts -------------------------------------------------------------------------------- /src/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/services/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/authz.guard.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/test/authz.guard.spec.ts -------------------------------------------------------------------------------- /test/use-permissions.decorator.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/test/use-permissions.decorator.spec.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/tslint.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-casbin/nest-authz/HEAD/yarn.lock --------------------------------------------------------------------------------