{"id":22484501,"url":"https://github.com/open-template-hub/auth-server-template","last_synced_at":"2025-08-10T07:31:48.700Z","repository":{"id":38077058,"uuid":"243605389","full_name":"open-template-hub/auth-server-template","owner":"open-template-hub","description":"Auth Server Template is a generic open-source authentication server that has a simple yet powerful design to connect your business with all OAuth 2.0 and OAuth supporting third-party companies (like Google, Facebook, Twitter, or LinkedIn). It also supports a basic username-password authentication system.","archived":false,"fork":false,"pushed_at":"2024-04-22T04:11:47.000Z","size":537,"stargazers_count":19,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2024-05-02T01:38:40.782Z","etag":null,"topics":["authentication","express","facebook-login","github-login","google-login","linkedin-login","nodejs","nodejs-express","oauth","oauth2","server","social-login","template","twitch-login","twitter-login"],"latest_commit_sha":null,"homepage":"https://opentemplatehub.com/product/server/auth-server-template","language":"HTML","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/open-template-hub.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-27T20:01:34.000Z","updated_at":"2024-05-06T05:26:52.554Z","dependencies_parsed_at":"2023-02-12T16:45:57.936Z","dependency_job_id":"fd0c6f4e-c93d-46ba-b003-1e128ed35b4b","html_url":"https://github.com/open-template-hub/auth-server-template","commit_stats":null,"previous_names":[],"tags_count":46,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-template-hub%2Fauth-server-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-template-hub%2Fauth-server-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-template-hub%2Fauth-server-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-template-hub%2Fauth-server-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-template-hub","download_url":"https://codeload.github.com/open-template-hub/auth-server-template/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229381214,"owners_count":18064099,"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":["authentication","express","facebook-login","github-login","google-login","linkedin-login","nodejs","nodejs-express","oauth","oauth2","server","social-login","template","twitch-login","twitter-login"],"created_at":"2024-12-06T17:11:05.133Z","updated_at":"2024-12-12T12:12:55.099Z","avatar_url":"https://github.com/open-template-hub.png","language":"HTML","funding_links":[],"categories":["HTML"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://opentemplatehub.com\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/open-template-hub/open-template-hub.github.io/master/assets/logo/server/auth-server-logo.png\" alt=\"Logo\" width=200\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\nOpen Template Hub - Auth Server Template v5\n\u003c/h1\u003e\n\n[![License](https://img.shields.io/github/license/open-template-hub/auth-server-template?color=43b043\u0026style=for-the-badge)](LICENSE)\n[![Issues](https://img.shields.io/github/issues/open-template-hub/auth-server-template?color=43b043\u0026style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/issues)\n[![PRCLosed](https://img.shields.io/github/issues-pr-closed-raw/open-template-hub/auth-server-template?color=43b043\u0026style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/pulls?q=is%3Apr+is%3Aclosed)\n[![LastCommit](https://img.shields.io/github/last-commit/open-template-hub/auth-server-template?color=43b043\u0026style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/commits/master)\n[![Release](https://img.shields.io/github/release/open-template-hub/auth-server-template?include_prereleases\u0026color=43b043\u0026style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/releases)\n[![SonarCloud](https://img.shields.io/sonar/quality_gate/open-template-hub_auth-server-template?server=https%3A%2F%2Fsonarcloud.io\u0026label=Sonar%20Cloud\u0026style=for-the-badge\u0026logo=sonarcloud)](https://sonarcloud.io/dashboard?id=open-template-hub_auth-server-template)\n[![Postman](https://img.shields.io/badge/Postman-Test%20Results-FF6C37?style=for-the-badge\u0026logo=postman)](https://github.com/open-template-hub/auth-server-template/blob/develop/assets/test-results/postman.html)\n\nAuth Server Template is a generic open-source authentication server that has a simple yet powerful design to connect your business with all OAuth 2.0 and OAuth supporting third-party companies (like Google, Facebook, Twitter, or LinkedIn). It also supports a basic username-password authentication system.\n\n## Ways to Begin\n\n### 1. Express Deploy\n\nDeploy this template to Heroku\n\n[![Deploy](https://img.shields.io/badge/Deploy_to-Heroku-7056bf.svg?style=for-the-badge\u0026logo=heroku)](https://heroku.com/deploy?template=https://github.com/open-template-hub/auth-server-template)\n\n### 2. Start with Server Generator\n\nCreate your server with Server Generator Package\n\n[![NPM](https://img.shields.io/badge/NPM-server_generator-cb3837.svg?style=for-the-badge\u0026logo=npm)](https://www.npmjs.com/package/@open-template-hub/server-generator)\n\n### 3. GitHub Template\n\nUse this repository as a Template\n\n[![GitHubTemplate](https://img.shields.io/badge/GitHub-Template-24292e.svg?style=for-the-badge\u0026logo=github)](https://github.com/open-template-hub/auth-server-template/generate)\n\n## Installations\n\nInstall **nodejs** and **npm** via **[nodejs.org](https://nodejs.org)**.\n\nCheck installed versions of **nodejs** and **npm** via running following commands:\n\n```\nnode -v\nnpm -v\n```\n\nCheck project's current **nodejs** and **npm** version from **[package.json](package.json)**.\n\n## Environment Variables\n\nIf you don't give **RESPONSE_ENCRYPTION_SECRET**, response encryption mechanism will be disabled automatically.\n\n```applescript\nPORT=4001\n\nPROJECT=OTH\nMODULE=AuthServer\nENVIRONMENT=Local\n\nCLIENT_URL=http://localhost:4200\nADMIN_CLIENT_URLS=\"http://localhost:4202\"\n\nDATABASE_URL={Database Connection Url}\nPOSTGRESQL_CONNECTION_LIMIT={Postgresql Connection Limit}\n\nMONGODB_URI={Database Connection Url}\nMONGODB_CONNECTION_LIMIT={MongoDB Connection Limit}\n\nCLOUDAMQP_APIKEY={MQ Api Key}\nCLOUDAMQP_URL={MQ Connection Url}\n\nAUTH_SERVER_QUEUE_CHANNEL=oth_auth_queue\nORCHESTRATION_SERVER_QUEUE_CHANNEL=oth_orchestration_queue\n\nREDISCLOUD_URL={Redis Connection Url}\nREDIS_CONNECTION_LIMIT={Redis Connection Limit}\n\nAUTO_VERIFY=false\n\nACCESS_TOKEN_EXPIRE=1hour\nACCESS_TOKEN_SECRET={Access Token Secret}\n\nREFRESH_TOKEN_EXPIRE=30days\nREFRESH_TOKEN_SECRET={Refresh Token Secret}\n\nJOIN_TEAM_TOKEN_EXPIRE=10days\nJOIN_TEAM_TOKEN_SECRET={Join Team Token Secret}\n\nRESET_PASSWORD_TOKEN_EXPIRE=1day\nRESET_PASSWORD_TOKEN_SECRET={Reset Token Secret}\n\nVERIFICATION_TOKEN_SECRET={Verification Token Secret\n\nRESPONSE_ENCRYPTION_SECRET={Response Encryption Secret}\n\nPREAUTH_TOKEN_SECRET={Pre Auth Token Secret}\n\nTWO_FACTOR_EXPIRE=90\nTWO_FACTOR_CODE_LENGTH=5\nTWO_FACTOR_CODE_TYPE=numeric\n```\n\n## Social Login Configurations\n\nTo be able to use social login mechanism, refer to **[SOCIAL_LOGIN.md](docs/SOCIAL_LOGIN.md)** file.\n\n\u003cbr/\u003e\n\n## Postman Regression Tests\n\nTo be able to configure regression tests, refer to **[REGRESSION_TESTS.md](docs/REGRESSION_TESTS.md)** file.\n\n\u003cbr/\u003e\n\n## Http Requests\n\nYou can find list of available http request in the [requests](assets/requests) directory. You can run http requests directly via **WebStorm**, for more information check out: [jetbrains.com/help/idea/http-client-in-product-code-editor.html](https://jetbrains.com/help/idea/http-client-in-product-code-editor.html)\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/furknyavuz\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/2248168?s=460\u0026u=435ef6ade0785a7a135ce56cae751fb3ade1d126\u0026v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFurkan Yavuz\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/open-template-hub/auth-server-template/issues/created_by/furknyavuz\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e \u003ca href=\"https://github.com/open-template-hub/auth-server-template/commits?author=furknyavuz\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/open-template-hub/auth-server-template/pulls?q=is%3Apr+reviewed-by%3Afurknyavuz\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/fatihturker\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/2202179?s=460\u0026u=261b1129e7106c067783cb022ab9999aad833bdc\u0026v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFatih Turker\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/open-template-hub/auth-server-template/issues/created_by/fatihturker\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e \u003ca href=\"https://github.com/open-template-hub/auth-server-template/commits?author=fatihturker\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/open-template-hub/auth-server-template/pulls?q=is%3Apr+reviewed-by%3Afatihturker\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mertlsarac\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/38442589?s=400\u0026u=aa3cda11724fc297a0bfa6beb35c9be81687cf3c\u0026v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMert Sarac\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/open-template-hub/auth-server-template/issues/created_by/mertlsarac\" title=\"Answering Questions\"\u003e💬\u003c/a\u003e \u003ca href=\"https://github.com/open-template-hub/auth-server-template/commits?author=mertlsarac\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/open-template-hub/auth-server-template/pulls?q=is%3Apr+reviewed-by%3Amertlsarac\" title=\"Reviewed Pull Requests\"\u003e👀\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## Contributing\n\nRefer to **[CONTRIBUTING.md](https://github.com/open-template-hub/.github/blob/master/docs/CONTRIBUTING.md)** to see how to contribute to Open Template Hub.\n\n\u003cbr/\u003e\n\n## Code of Conduct\n\nRefer to **[CODE_OF_CONDUCT.md](https://github.com/open-template-hub/.github/blob/master/docs/CODE_OF_CONDUCT.md)** to see contributor covenant code of conduct.\n\n\u003cbr/\u003e\n\n## LICENSE\n\nThe source code for this project is released under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-template-hub%2Fauth-server-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-template-hub%2Fauth-server-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-template-hub%2Fauth-server-template/lists"}