{"id":24516702,"url":"https://github.com/guyshilo/accessservice","last_synced_at":"2025-10-06T16:46:37.806Z","repository":{"id":124483849,"uuid":"438401280","full_name":"guyShilo/AccessService","owner":"guyShilo","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-17T08:03:43.000Z","size":201,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T10:42:55.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guyShilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-12-14T21:11:15.000Z","updated_at":"2021-12-17T08:03:46.000Z","dependencies_parsed_at":"2023-08-08T02:17:10.835Z","dependency_job_id":null,"html_url":"https://github.com/guyShilo/AccessService","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guyShilo/AccessService","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyShilo%2FAccessService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyShilo%2FAccessService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyShilo%2FAccessService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyShilo%2FAccessService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guyShilo","download_url":"https://codeload.github.com/guyShilo/AccessService/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guyShilo%2FAccessService/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278646760,"owners_count":26021511,"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-10-06T02:00:05.630Z","response_time":65,"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-01-22T01:27:23.662Z","updated_at":"2025-10-06T16:46:37.771Z","avatar_url":"https://github.com/guyShilo.png","language":"TypeScript","funding_links":["https://opencollective.com/nest"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://nestjs.com/\" target=\"blank\"\u003e\u003cimg src=\"https://nestjs.com/img/logo_text.svg\" width=\"320\" alt=\"Nest Logo\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456\n[circleci-url]: https://circleci.com/gh/nestjs/nest\n\n  \u003c!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)\n  [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)--\u003e\n\n## Description\n\nAccess Service built with [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.\n\n## Running the app\n\n```bash\n# Docker\n$ docker-compose up\n\n# The service will be running on localhost:3000\n```\n\n# Routes\n\n```\nPOST /\n```\n\n- Given an authenticated user request (which contains the userId) and a list of required permissions, generate a new api key for the user.\n\n```json\n# Example\n{\n    \"userId\": \"5df66399592878d7d80dad38\",\n    \"permissions\": [\n        \"read\",\n        \"write\"\n    ]\n}\n```\n\n```json\n# With all the following requests please include Authorization Bearer in the request headers.\n```\n\n```\nPOST /authenticate\n```\n\n1. generate a new signed JWT token for the user with the pre-defined set of permissions\n2. Update the \"last usage\" date of that token\n\n```\nDELETE /{:id}\n```\n\n- Given an authenticated user request and an API token, revoke the usage of that token.\n\n```\nGET /\n```\n- Given an authenticated user request, get all the tokens of that user in an obstructed form (showing only the last 4 chars, like a credit card) with their status and last recently used date.\n\n\nNest is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyshilo%2Faccessservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguyshilo%2Faccessservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguyshilo%2Faccessservice/lists"}