{"id":38316655,"url":"https://github.com/cuttle-ai/auth-service","last_synced_at":"2026-01-17T02:36:21.331Z","repository":{"id":57504458,"uuid":"170993685","full_name":"cuttle-ai/auth-service","owner":"cuttle-ai","description":"authentication service for the cuttle.ai platform","archived":false,"fork":false,"pushed_at":"2020-06-20T07:19:31.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-14T23:44:42.493Z","etag":null,"topics":["authentication","google-authentication","oauth2"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/cuttle-ai.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":"2019-02-16T10:59:49.000Z","updated_at":"2020-06-20T07:19:34.000Z","dependencies_parsed_at":"2022-08-30T03:41:11.786Z","dependency_job_id":null,"html_url":"https://github.com/cuttle-ai/auth-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cuttle-ai/auth-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuttle-ai%2Fauth-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuttle-ai%2Fauth-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuttle-ai%2Fauth-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuttle-ai%2Fauth-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cuttle-ai","download_url":"https://codeload.github.com/cuttle-ai/auth-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cuttle-ai%2Fauth-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"online","status_checked_at":"2026-01-17T02:00:07.808Z","response_time":85,"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":["authentication","google-authentication","oauth2"],"created_at":"2026-01-17T02:36:21.208Z","updated_at":"2026-01-17T02:36:21.302Z","avatar_url":"https://github.com/cuttle-ai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auth Server\n\nAuth Service provides the authentication for the cuttle.ai platform\n\n## Prerequisite\n\nYou would require the following to be installed in your system\n\n- [node](https://nodejs.org/en/)\n- [go](https://golang.org/)\n\n## Installation\n\nAdd the following variables to your .bashrc or .zshrc in your home directory\n\n```\nexport VAULT_ROOT_KEY='get-the-vault-root-token-from-development-team'\nexport CUTTLE_AI_CONFIG_VAULT_TOKEN=$VAULT_ROOT_KEY\nexport CUTTLE_AI_CONFIG_VAULT_ADDRESS='https://vault.cuttle.ai'\nexport CUTTLE_AI_CONFIG_VAULT_DEFAULT_PATH='cuttle-ai-development'\n```\n\n```bash\ngit clone https://github.com/cuttle-ai/auth-service\ncd auth-service\nsh setup.sh\ncd ../brain-frontend\nsudo npm install -g @angular/cli\nnpm i\n```\n\n## Usage\n\nNavigate into the project directory and run the following command\n\n```bash\ncd ../brain-frontend \u0026\u0026 npm start\n```\n\nOpen another terminal session in the project directory and run the following command\n\n```bash\ngo run main.go\n```\n\nNow open the browser and navigate to [localhost:4200](http://localhost:4200). Authenticate yourself using the Google login offered by the platform.\nOpen Developer Tools(Browser) -\u003e Application -\u003e Cookies , Use the cookie value of `auth-token` for testing API\n\n### Environment Variables\n\n| Enivironment Variable                | Description                                                                                     |\n| ------------------------------------ | ----------------------------------------------------------------------------------------------- |\n| **PORT**                             | Port on to which application server listens to. Default value is 8080                           |\n| **RESPONSE_TIMEOUT**                 | Timeout for the server to write response. Default value is 100ms                                |\n| **REQUEST_BODY_READ_TIMEOUT**        | Timeout for reading the request body send to the server. Default value is 20ms                  |\n| **RESPONSE_BODY_WRITE_TIMEOUT**      | Timeout for writing the response body. Default value is 20ms                                    |\n| **PRODUCTION**                       | Flag to denote whether the server is running in production. Default value is `false`            |\n| **SKIP_VAULT**                       | Skip loading the configurations from vault server. Default value is `false`.                    |\n| **IS_TEST**                          | Denoting the run is test. This will load the test configuration from vault                      |\n| **MAX_REQUESTS**                     | Maximum no. of concurrent requests supported by the server. Default value is 1000               |\n| **REQUEST_CLEAN_UP_CHECK**           | Time interval after which error request app context cleanup has to be done. Default value is 2m |\n| **OAUTH2_GOOGLE_REDIRECT_URL**       | Google oauth redirect url                                                                       |\n| **OAUTH2_GOOGLE_CLIENT_ID**          | Google oauth client id                                                                          |\n| **OAUTH2_GOOGLE_CLIENT_SECRET**      | Google oauth client secret                                                                      |\n| **OAUTH2_GOOGLE_USER_PROFILE_SCOPE** | Google user profile scope                                                                       |\n| **OAUTH2_GOOGLE_USER_EMAIL_SCOPE**   | Google user email scope                                                                         |\n| **OAUTH2_GOOGLE_USER_INFO_URL**      | Google exchange url which gives google user info                                                |\n| **OAUTH2_GOOGLE_USER_INFO_NAME**     | Key storing the name key in the google user info                                                |\n| **OAUTH2_GOOGLE_USER_INFO_EMAIL**    | Key storing the email key in the google user info                                               |\n| **FRONTEND_URL**                     | URL for accessing the frontend                                                                  |\n| **DISCOVERY_URL**                    | URL of the discovery service consul                                                             |\n| **DISCOVERY_TOKEN**                  | Access token for accessing the discovery service consul                                         |\n\n## Author\n\n[Melvin Davis](mailto:melvinodsa@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuttle-ai%2Fauth-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuttle-ai%2Fauth-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuttle-ai%2Fauth-service/lists"}