{"id":21070878,"url":"https://github.com/gitkodev/golang_auth","last_synced_at":"2025-03-14T02:42:50.611Z","repository":{"id":254789831,"uuid":"844806031","full_name":"gitkoDev/golang_auth","owner":"gitkoDev","description":"Golang authentification service providing authentication and refresh tokens","archived":false,"fork":false,"pushed_at":"2024-08-26T04:39:23.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T21:56:55.953Z","etag":null,"topics":[],"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/gitkoDev.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":"2024-08-20T02:18:30.000Z","updated_at":"2024-09-09T01:58:10.000Z","dependencies_parsed_at":"2024-08-26T05:53:51.837Z","dependency_job_id":"de2cd0bc-33e9-4947-8d42-dba2cc2ab520","html_url":"https://github.com/gitkoDev/golang_auth","commit_stats":null,"previous_names":["gitkodev/medods_task","gitkodev/golang_auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitkoDev%2Fgolang_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitkoDev%2Fgolang_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitkoDev%2Fgolang_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitkoDev%2Fgolang_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitkoDev","download_url":"https://codeload.github.com/gitkoDev/golang_auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243513955,"owners_count":20303040,"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":[],"created_at":"2024-11-19T18:48:43.502Z","updated_at":"2025-03-14T02:42:50.598Z","avatar_url":"https://github.com/gitkoDev.png","language":"Go","readme":"# Medods Authentication Service\n\nJWT Golang Authentication service built with `Clean Architecure` and `Dependency Injection` principles\n\n## Endpoints\n\n- 0.0.0.0:8080/v1/health \u0026ensp; `=\u003e`  \u0026ensp; **GET** \u0026ensp;  `=\u003e` \u0026ensp; Check API connection\n\n  \n- 0.0.0.0:8080/v1/auth?id=*{user id}* \u0026ensp; `=\u003e`  \u0026ensp; **GET** \u0026ensp;  `=\u003e` \u0026ensp; Get token pair\n\n`Response example:`\n\n```json\n{\n    \"access_token\": \"access_token\",\n    \"refresh_token\": \"refresh_token\",\n    \"user_ip\": \"172.24.0.1\"\n}\n```\n- 0.0.0.0:8080/v1/auth/refresh \u0026ensp; `=\u003e`  \u0026ensp; **POST** \u0026ensp;  `=\u003e` \u0026ensp; Refresh token pair\n  \n`Response example:`\n```json\n{\n    \"access_token\": \"access_token\",\n    \"refresh_token\": \"refresh_token\",\n}\n```\n\n## Running the app\n\n```bash\n# start the app\nmake run\n```\n\n\n## Tools used\n\n- `Logging` \u0026nbsp; **=\u003e**  \u0026nbsp; [Logrus](https://github.com/sirupsen/logrus)\n- `Routing` \u0026nbsp; **=\u003e**  \u0026nbsp;  [Gin](https://github.com/gin-gonic/gin)\n- `Database` \u0026nbsp; **=\u003e**  \u0026nbsp;  Postgres + [pgx](github.com/jackc/pgx/v5)\n- `Database migrations` \u0026nbsp; **=\u003e**  \u0026nbsp; [Goose](https://github.com/pressly/goose#sql-migrations)\n- `Containerization` \u0026nbsp; **=\u003e**  \u0026nbsp; [Docker](http://docker.com/) + Docker Compose\n- `Authentification and middleware` \u0026nbsp; **=\u003e**  \u0026nbsp;  [JWT Go](https://github.com/golang-jwt/jwt)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitkodev%2Fgolang_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitkodev%2Fgolang_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitkodev%2Fgolang_auth/lists"}