├── .circleci └── config.yml ├── .coveralls.yml ├── .dockerignore ├── .editorconfig ├── .eslintrc.yml ├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .npmignore ├── .prettierrc ├── CHANGELOG.md ├── Dockerfile ├── LICENSE ├── Makefile ├── README.md ├── docs ├── contribution.md ├── css │ └── extra.css ├── documentation │ ├── configuration.md │ ├── getting-started.md │ ├── methods.md │ ├── rules.md │ └── status-and-responses.md ├── express-acl.jpg ├── images │ └── constable.jpg └── index.md ├── examples ├── index.js ├── nacl.json ├── package-lock.json ├── package.json └── routes │ └── index.js ├── gulpfile.js ├── index.d.ts ├── lib ├── common.js └── index.js ├── mkdocs.yml ├── nacl.json ├── package.json ├── requirements.txt └── tests ├── behavior ├── nacl.authorize.glob.spec.js ├── nacl.authorize.spec.js ├── nacl.config.rules.spec.js ├── nacl.config.spec.js ├── nacl.config.yml.spec.js ├── nacl.glob.methods.spec.js ├── nacl.glob.resource.spec.js ├── nacl.subroutes.spec.js └── nacl.unprotected.path.spec.js ├── config ├── all-glob-allow.json ├── all-glob-deny.json ├── config.json ├── deny-user-config.json ├── empty-policy.json ├── methods-glob-allow.json ├── methods-glob-deny.json ├── nacl.yml ├── resource-glob-allow.json ├── resource-glob-deny.json └── subroutes.json └── unit ├── common.spec.js └── index.spec.js /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.coveralls.yml: -------------------------------------------------------------------------------- 1 | service_name: travis-pro 2 | repo_token: Em64TqxZZYPW8JZGvbnr94KMjRUXYGxK6 3 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.dockerignore -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.eslintrc.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/README.md -------------------------------------------------------------------------------- /docs/contribution.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/css/extra.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/css/extra.css -------------------------------------------------------------------------------- /docs/documentation/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/documentation/configuration.md -------------------------------------------------------------------------------- /docs/documentation/getting-started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/documentation/getting-started.md -------------------------------------------------------------------------------- /docs/documentation/methods.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/documentation/methods.md -------------------------------------------------------------------------------- /docs/documentation/rules.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/documentation/rules.md -------------------------------------------------------------------------------- /docs/documentation/status-and-responses.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/documentation/status-and-responses.md -------------------------------------------------------------------------------- /docs/express-acl.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/express-acl.jpg -------------------------------------------------------------------------------- /docs/images/constable.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/images/constable.jpg -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/docs/index.md -------------------------------------------------------------------------------- /examples/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/examples/index.js -------------------------------------------------------------------------------- /examples/nacl.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/examples/nacl.json -------------------------------------------------------------------------------- /examples/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/examples/package-lock.json -------------------------------------------------------------------------------- /examples/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/examples/package.json -------------------------------------------------------------------------------- /examples/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/examples/routes/index.js -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/gulpfile.js -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/index.d.ts -------------------------------------------------------------------------------- /lib/common.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/lib/common.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/lib/index.js -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /nacl.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/nacl.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/package.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/requirements.txt -------------------------------------------------------------------------------- /tests/behavior/nacl.authorize.glob.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.authorize.glob.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.authorize.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.authorize.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.config.rules.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.config.rules.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.config.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.config.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.config.yml.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.config.yml.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.glob.methods.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.glob.methods.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.glob.resource.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.glob.resource.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.subroutes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.subroutes.spec.js -------------------------------------------------------------------------------- /tests/behavior/nacl.unprotected.path.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/behavior/nacl.unprotected.path.spec.js -------------------------------------------------------------------------------- /tests/config/all-glob-allow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/all-glob-allow.json -------------------------------------------------------------------------------- /tests/config/all-glob-deny.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/all-glob-deny.json -------------------------------------------------------------------------------- /tests/config/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/config.json -------------------------------------------------------------------------------- /tests/config/deny-user-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/deny-user-config.json -------------------------------------------------------------------------------- /tests/config/empty-policy.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /tests/config/methods-glob-allow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/methods-glob-allow.json -------------------------------------------------------------------------------- /tests/config/methods-glob-deny.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/methods-glob-deny.json -------------------------------------------------------------------------------- /tests/config/nacl.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/nacl.yml -------------------------------------------------------------------------------- /tests/config/resource-glob-allow.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/resource-glob-allow.json -------------------------------------------------------------------------------- /tests/config/resource-glob-deny.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/resource-glob-deny.json -------------------------------------------------------------------------------- /tests/config/subroutes.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/config/subroutes.json -------------------------------------------------------------------------------- /tests/unit/common.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/unit/common.spec.js -------------------------------------------------------------------------------- /tests/unit/index.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nyambati/express-acl/HEAD/tests/unit/index.spec.js --------------------------------------------------------------------------------