{"id":16918411,"url":"https://github.com/cv65kr/authorization-service","last_synced_at":"2026-04-04T20:33:04.706Z","repository":{"id":52527971,"uuid":"247789461","full_name":"cv65kr/authorization-service","owner":"cv65kr","description":"Authorization service based on Spring","archived":false,"fork":false,"pushed_at":"2021-04-26T20:06:08.000Z","size":510,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T20:53:28.820Z","etag":null,"topics":["bdd","docker","microservice","mongodb","oauth2-server","redis","spring","tdd"],"latest_commit_sha":null,"homepage":"","language":"Java","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/cv65kr.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}},"created_at":"2020-03-16T18:31:35.000Z","updated_at":"2020-03-27T23:03:57.000Z","dependencies_parsed_at":"2022-09-15T22:03:34.346Z","dependency_job_id":null,"html_url":"https://github.com/cv65kr/authorization-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cv65kr/authorization-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cv65kr%2Fauthorization-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cv65kr%2Fauthorization-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cv65kr%2Fauthorization-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cv65kr%2Fauthorization-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cv65kr","download_url":"https://codeload.github.com/cv65kr/authorization-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cv65kr%2Fauthorization-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bdd","docker","microservice","mongodb","oauth2-server","redis","spring","tdd"],"created_at":"2024-10-13T19:39:48.279Z","updated_at":"2026-04-04T20:33:04.683Z","avatar_url":"https://github.com/cv65kr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authorization service\n\n![CI](https://github.com/cv65kr/authorization-service/workflows/CI/badge.svg?branch=master)\n\nSimple open source Authorization microservice. This service is used for user authorization as well as for secure machine-to-machine communication inside a perimeter. Uses Redis for token and MongoDB for user account data keeping. The highest quality of code, strong testing culture. Supported with Java 8, 12, 13.\n\n![Infrastructure schema](./docs/images/schema.png)\n\n# How use\n\n*Every make command have available `env` parameter.*\n\n## Running\n\nTo run service in production mode, just use\n\n```bash\nmake env=prod start\n```\n\nservice will be available on `0.0.0.0:4000` address.\n\n### Developing\n\nTo start developing, just use\n\n```bash\nmake start\n```\n\nthen go to IntelliJ and follow the instructions below\n\n1. Go to `Run/debug configurations` and find `AuthServiceApplication`\n2. Set VM options `-Dspring.profiles.active=dev`\n3. Paste Enviroment variables from `.env` file\n4. Save and click play button\n\n![IntelliJ configuration](./docs/images/intellij.png)\n\n## Create server client\n\nTo create client eg. for connect with another services, run:\n\n```bash\nmake client='account-service' secret='$$2y$$12$$1Xf4lvYLDxYFfJTteebdAuRo4lxrQ1uj1tuhBdDeOPaQstYevfG8u' grants='client_credentials,refresh_token' scopes='server' client\n```\n\n**Secret must be encoded in bcrypt and escaped.**\n\n## Endpoints\n\nMethod\t| Path\t| Description\n------------- | ------------------------- | ------------- |\nGET\t| /users/current\t| Get current user data\nPOST\t| /users\t| Create new user\n\n## Tests\n\nTo run all test just use\n\n```bash\nmake test\n```\n\n## Help\n\n```bash\nmake help\n```\n\n```\nstart                          Clean current environment, recreate dependencies and spin up again\nstop                           Stop environment\nrebuild                        Same as start\nerase                          Stop and delete containers, clean volumes.\nbuild                          Build environment\nup                             Spin up environment\nps                             Show containers list\npackage                        Maven package\ntest                           Run tests\nlogs                           Look for 's' service logs, make s=auth-service logs\nclient                         Create client, available arguments client,secret,grants,scopes\nhelp                           Display this help message\n```\n\n# Contributions are welcome!\n\nAuthorization service is open source, and would greatly appreciate your help. Feel free to suggest and implement improvements.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcv65kr%2Fauthorization-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcv65kr%2Fauthorization-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcv65kr%2Fauthorization-service/lists"}