{"id":34180295,"url":"https://github.com/alexey-dobry/go-auth","last_synced_at":"2026-05-24T23:33:21.625Z","repository":{"id":311890669,"uuid":"960337725","full_name":"alexey-dobry/go-auth","owner":"alexey-dobry","description":"Go Auth is simple authorization service","archived":false,"fork":false,"pushed_at":"2025-08-27T08:28:47.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T13:53:35.989Z","etag":null,"topics":["gorm","grpc","jwt"],"latest_commit_sha":null,"homepage":"","language":"Go","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/alexey-dobry.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,"zenodo":null}},"created_at":"2025-04-04T09:04:28.000Z","updated_at":"2025-08-27T17:10:12.000Z","dependencies_parsed_at":"2025-08-27T17:19:47.323Z","dependency_job_id":"90d1cf17-cd13-4601-b5af-44539ede0b96","html_url":"https://github.com/alexey-dobry/go-auth","commit_stats":null,"previous_names":["alexey-dobry/auth-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexey-dobry/go-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexey-dobry%2Fgo-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexey-dobry%2Fgo-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexey-dobry%2Fgo-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexey-dobry%2Fgo-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexey-dobry","download_url":"https://codeload.github.com/alexey-dobry/go-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexey-dobry%2Fgo-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33455020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"ssl_error","status_checked_at":"2026-05-24T19:21:10.562Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["gorm","grpc","jwt"],"created_at":"2025-12-15T13:56:11.664Z","updated_at":"2026-05-24T23:33:21.605Z","avatar_url":"https://github.com/alexey-dobry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Auth\n\u003e Simple authentication and permission checker service\n\n### Requirements:\n#### Docker:\n ![docker](https://badgen.net/static/docker/@latest/purple)\u003cbr/\u003e\n You can install Docker \u003ca href=\"https://docs.docker.com/engine/install/\"\u003ethere\u003c/a\u003e\n\n### Installing:\n1. Clone repository \n2. Go to ./auth-service/config and setup config.yaml as specified in config.example.yaml \u003cbr/\u003e\n   Note: it is crucial to set repository:host value equal to \"auth-database\"\u003cbr/\u003e\n\n3. Start the application\u003cbr/\u003e\n  - for Windows users:\u003cbr/\u003e\n    ```bash\n    docker-compose build\n    ```\n    ```bash\n    docker-compose up\n    ```\n  \n  - for Linux users:\u003cbr/\u003e\n    ```bash\n    docker compose build\n    ```\n    ```bash\n    docker compose up\n    ```\n\n### GRPC methods\n- **Register**: registers user in auth service and returns pair of jwt tokens(refresh and access)\n- **Login**: returns pair of jwt tokens(refresh and access) if user is registered\n- **Refresh**: returns pair of jwt tokens(refresh and access) if refresh token is valid\n- **Validate**: validates access token\n\n### Requests examples\n- **Register**:\n```\n{\n  \"email\": \"Roberto@gmail.com\",\n  \"first_name\": \"Andrey\",\n  \"last_name\": \"Svishev\",\n  \"password\": \"lorem_ipsum\",\n  \"username\": \"Youtubelover\"\n}\n```\n- **Login**:\n```\n{\n  \"email\": \"Roberto@gmail.com\",\n  \"password\": \"lorem_ipsum\"\n}\n```\n- **Refresh**:\n```\n{\n  \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTYxMzU2MzIsImlkIjowLCJ1c2VybmFtZSI6IiIsImZpcnN0X25hbWUiOiIiLCJsYXN0X25hbWUiOiIiLCJpc19hZG1pbiI6ZmFsc2V9.DfqoXRbnabTbL8tL6HWej7lW_AciEV8mNriMlLxiM-E\"\n}\n```\n- **Validate**:\n```\n{\n  \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTYwNTY0MzIsImlkIjowLCJ1c2VybmFtZSI6ImV1IiwiZmlyc3RfbmFtZSI6Im1hZ25hIGV1IGN1bHBhIHZlbGl0IiwibGFzdF9uYW1lIjoiZXUgZnVnaWF0IG1pbmltIGFsaXF1YSIsImlzX2FkbWluIjpmYWxzZX0.lZZWH37PaWM2c0_MsamWjiW4qt6PzEkjTYQzQ5BgNWk\"\n}\n```\n\n### Response example\n```\n{\n  \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTYwNTY0MzIsImlkIjowLCJ1c2VybmFtZSI6ImV1IiwiZmlyc3RfbmFtZSI6Im1hZ25hIGV1IGN1bHBhIHZlbGl0IiwibGFzdF9uYW1lIjoiZXUgZnVnaWF0IG1pbmltIGFsaXF1YSIsImlzX2FkbWluIjpmYWxzZX0.lZZWH37PaWM2c0_MsamWjiW4qt6PzEkjTYQzQ5BgNWk\",\n  \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTYxMzU2MzIsImlkIjowLCJ1c2VybmFtZSI6IiIsImZpcnN0X25hbWUiOiIiLCJsYXN0X25hbWUiOiIiLCJpc19hZG1pbiI6ZmFsc2V9.DfqoXRbnabTbL8tL6HWej7lW_AciEV8mNriMlLxiM-E\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexey-dobry%2Fgo-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexey-dobry%2Fgo-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexey-dobry%2Fgo-auth/lists"}