{"id":21158177,"url":"https://github.com/node-casbin/nest-authz-example","last_synced_at":"2025-06-24T15:05:52.253Z","repository":{"id":39891599,"uuid":"264634786","full_name":"node-casbin/nest-authz-example","owner":"node-casbin","description":"Node-Casbin authorization example for Nest.js via auth middleware: https://github.com/node-casbin/nest-authz","archived":false,"fork":false,"pushed_at":"2024-03-24T10:10:56.000Z","size":2015,"stargazers_count":19,"open_issues_count":8,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-24T15:04:34.820Z","etag":null,"topics":["abac","auth","authz","casbin","javascript","js","middleware","nest","nestjs","node","node-casbin","nodejs","permissions","rbac","ts","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/node-casbin/nest-authz","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-casbin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-17T10:11:10.000Z","updated_at":"2025-03-11T05:27:32.000Z","dependencies_parsed_at":"2024-11-20T21:31:08.093Z","dependency_job_id":null,"html_url":"https://github.com/node-casbin/nest-authz-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/node-casbin/nest-authz-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fnest-authz-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fnest-authz-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fnest-authz-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fnest-authz-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-casbin","download_url":"https://codeload.github.com/node-casbin/nest-authz-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-casbin%2Fnest-authz-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261700468,"owners_count":23196501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abac","auth","authz","casbin","javascript","js","middleware","nest","nestjs","node","node-casbin","nodejs","permissions","rbac","ts","typescript"],"created_at":"2024-11-20T12:16:59.409Z","updated_at":"2025-06-24T15:05:52.203Z","avatar_url":"https://github.com/node-casbin.png","language":"TypeScript","readme":"# nest-authz-example\n\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n## Description\n\nA demo shows how to use nest-authz to implement role-based access control.\n\n## Installation\n\n```bash\n$ npm install\n```\n\n## Running the app\n\n```bash\n# development\n$ npm run start\n\n# watch mode\n$ npm run start:dev\n\n# production mode\n$ npm run start:prod\n```\n\nOpen [http://localhost:3000/api](http://localhost:3000/api) to see api.\nThe api uses Bear auth schema, so if you want to access protected api, you should click the `Authorize` button and set `Bearer yourjwttoken` after login.\n\n## Test\n\n```bash\n# unit tests\n$ npm run test\n```\n\n## License\n\n[MIT licensed](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-casbin%2Fnest-authz-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-casbin%2Fnest-authz-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-casbin%2Fnest-authz-example/lists"}