{"id":19298293,"url":"https://github.com/casbin/tyk-authz","last_synced_at":"2025-02-24T01:13:34.636Z","repository":{"id":86627232,"uuid":"512368995","full_name":"casbin/tyk-authz","owner":"casbin","description":"Casbin authorization plugin for tyk API gateway","archived":false,"fork":false,"pushed_at":"2022-07-13T15:14:23.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T10:05:04.703Z","etag":null,"topics":["abac","acl","api-gateway","auth","authorization","authz","casbin","rbac","tyk"],"latest_commit_sha":null,"homepage":"https://github.com/casbin/casbin","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/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}},"created_at":"2022-07-10T07:09:55.000Z","updated_at":"2024-08-21T22:19:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"579e3099-79d3-45fa-9a6c-82f144251f87","html_url":"https://github.com/casbin/tyk-authz","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"296f4bec186c63c9bca9d13ba3ba2ce1f2908a0d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Ftyk-authz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Ftyk-authz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Ftyk-authz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/casbin%2Ftyk-authz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/casbin","download_url":"https://codeload.github.com/casbin/tyk-authz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239458949,"owners_count":19642100,"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","acl","api-gateway","auth","authorization","authz","casbin","rbac","tyk"],"created_at":"2024-11-09T23:07:35.108Z","updated_at":"2025-02-24T01:13:34.586Z","avatar_url":"https://github.com/casbin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tyk-authz\n\nCasbin authorization plugin for Tyk.\n\n\n## Installation\n\nCompile it:\n``` bash\ndocker run --rm -v `pwd`:/plugin-source tykio/tyk-plugin-compiler:v3.2.3 plugin.so\n```\n\n\nCopy the example Tyk Gateway api definition `examples\\casbin-authz-api-example.json` (as well as the model\u0026policy configfile) and the compiled `plugin.so` to the Tyk plugins directory. \n\nModify the path in the `casbin-authz-api-example.json` to point to the compiled `plugin.so` file \u0026 config files. \n\nStart the Tyk Gateway and test the plugin.\n\n```bash\ncurl http://localhost:8080/test/get -i  # it will receive a 401\ncurl -H \"username:alice\" http://localhost:8080/test/get -i -v  # it will receive a 200\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasbin%2Ftyk-authz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcasbin%2Ftyk-authz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcasbin%2Ftyk-authz/lists"}