{"id":30091958,"url":"https://github.com/permitio/permit-authzen-interop","last_synced_at":"2025-08-09T07:54:45.636Z","repository":{"id":241374069,"uuid":"806271694","full_name":"permitio/permit-authzen-interop","owner":"permitio","description":"Permit PDP gateway to support the AuthZen PDP stnadard","archived":false,"fork":false,"pushed_at":"2024-12-08T11:03:30.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-30T01:06:25.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/permitio.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":"2024-05-26T20:51:47.000Z","updated_at":"2024-12-08T11:03:34.000Z","dependencies_parsed_at":"2024-05-28T02:59:21.595Z","dependency_job_id":"ae53c97d-0bc3-446e-baa3-edf012f8eb5d","html_url":"https://github.com/permitio/permit-authzen-interop","commit_stats":null,"previous_names":["permitio/permit-authzen-interop"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/permitio/permit-authzen-interop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2Fpermit-authzen-interop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2Fpermit-authzen-interop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2Fpermit-authzen-interop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2Fpermit-authzen-interop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/permitio","download_url":"https://codeload.github.com/permitio/permit-authzen-interop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permitio%2Fpermit-authzen-interop/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269548490,"owners_count":24436109,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-09T07:54:44.687Z","updated_at":"2025-08-09T07:54:45.628Z","avatar_url":"https://github.com/permitio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Permit AuthZen PDP Gateway\nA simple Fastify server that proxies the Permit.io PDP service into an AuthZen-compliant PDP service.\n\n## Usage\nTo run this project locally:\n1. Create an `.env` file with the following content:\n```\nPERMIT_PDP_URL=\u003cyour_permit_pdp_address\u003e\nPERMIT_API_KEY=\u003cyour_permit_api_key\u003e\n```\n2. Install the dependencies:\n```bash\nnpm install\n```\n3. Run the server:\n```bash\nnpm start\n```\n\nThis server will expose you a `POST` endpoint at `/access/v1/evaluation`, which is the main PDP endpoint for the AuthZen standard.\n\n## Testing\nTo run the AuthZen interop tests, you have to configure your Permit account with the relevant data. You can do so by running the following command on a clean Permit environment (after installing the dependencies):\n```bash\nnpm run setup \u0026\u0026 npm start\n```\n\nAfter running and setup the command, simply run the following command to run the tests:\n```bash\n./test.sh localhost:3000\n```\n\nThese are the expected results:\n```\n\u003e\u003e\u003e checking decisions\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_todos\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_create_todo\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"morty@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDA2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"morty@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_todos\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_create_todo\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"morty@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDE2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"morty@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_todos\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_create_todo\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"summer@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDI2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"summer@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_todos\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_create_todo\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDM2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"beth@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_user\"},\"resource\":{\"type\":\"user\",\"userID\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_read_todos\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_create_todo\"},\"resource\":{\"type\":\"todo\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_update_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"jerry@the-smiths.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"rick@the-citadel.com\"}}\nPASS REQ:{\"subject\":{\"identity\":\"CiRmZDQ2MTRkMy1jMzlhLTQ3ODEtYjdiZC04Yjk2ZjVhNTEwMGQSBWxvY2Fs\"},\"action\":{\"name\":\"can_delete_todo\"},\"resource\":{\"type\":\"todo\",\"ownerID\":\"jerry@the-smiths.com\"}}\n\u003c\u003c\u003c done checking decisions\n```\n\n## Read More\n - OpenID [AuthZEN Working Group](https://openid.net/wg/authzen/)\n - [Permit.io PDP](https://docs.permit.io/concepts/pdp)\n - AuthZEN [Interop Website](https://authzen-interop.net/)\n - AuthZEN Sample [Request/Response Collection](https://www.postman.com/axiomatics/workspace/authzen-sample-requests/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermitio%2Fpermit-authzen-interop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpermitio%2Fpermit-authzen-interop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermitio%2Fpermit-authzen-interop/lists"}