Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/open-template-hub/auth-server-template
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.
https://github.com/open-template-hub/auth-server-template
authentication express facebook-login github-login google-login linkedin-login nodejs nodejs-express oauth oauth2 server social-login template twitch-login twitter-login
Last synced: 13 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/open-template-hub/auth-server-template
- Owner: open-template-hub
- License: mit
- Created: 2020-02-27T20:01:34.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-22T04:11:47.000Z (8 months ago)
- Last Synced: 2024-05-02T01:38:40.782Z (8 months ago)
- Topics: authentication, express, facebook-login, github-login, google-login, linkedin-login, nodejs, nodejs-express, oauth, oauth2, server, social-login, template, twitch-login, twitter-login
- Language: HTML
- Homepage: https://opentemplatehub.com/product/server/auth-server-template
- Size: 524 KB
- Stars: 19
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Open Template Hub - Auth Server Template v5[![License](https://img.shields.io/github/license/open-template-hub/auth-server-template?color=43b043&style=for-the-badge)](LICENSE)
[![Issues](https://img.shields.io/github/issues/open-template-hub/auth-server-template?color=43b043&style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/issues)
[![PRCLosed](https://img.shields.io/github/issues-pr-closed-raw/open-template-hub/auth-server-template?color=43b043&style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/pulls?q=is%3Apr+is%3Aclosed)
[![LastCommit](https://img.shields.io/github/last-commit/open-template-hub/auth-server-template?color=43b043&style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/commits/master)
[![Release](https://img.shields.io/github/release/open-template-hub/auth-server-template?include_prereleases&color=43b043&style=for-the-badge)](https://github.com/open-template-hub/auth-server-template/releases)
[![SonarCloud](https://img.shields.io/sonar/quality_gate/open-template-hub_auth-server-template?server=https%3A%2F%2Fsonarcloud.io&label=Sonar%20Cloud&style=for-the-badge&logo=sonarcloud)](https://sonarcloud.io/dashboard?id=open-template-hub_auth-server-template)
[![Postman](https://img.shields.io/badge/Postman-Test%20Results-FF6C37?style=for-the-badge&logo=postman)](https://github.com/open-template-hub/auth-server-template/blob/develop/assets/test-results/postman.html)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.
## Ways to Begin
### 1. Express Deploy
Deploy this template to Heroku
[![Deploy](https://img.shields.io/badge/Deploy_to-Heroku-7056bf.svg?style=for-the-badge&logo=heroku)](https://heroku.com/deploy?template=https://github.com/open-template-hub/auth-server-template)
### 2. Start with Server Generator
Create your server with Server Generator Package
[![NPM](https://img.shields.io/badge/NPM-server_generator-cb3837.svg?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@open-template-hub/server-generator)
### 3. GitHub Template
Use this repository as a Template
[![GitHubTemplate](https://img.shields.io/badge/GitHub-Template-24292e.svg?style=for-the-badge&logo=github)](https://github.com/open-template-hub/auth-server-template/generate)
## Installations
Install **nodejs** and **npm** via **[nodejs.org](https://nodejs.org)**.
Check installed versions of **nodejs** and **npm** via running following commands:
```
node -v
npm -v
```Check project's current **nodejs** and **npm** version from **[package.json](package.json)**.
## Environment Variables
If you don't give **RESPONSE_ENCRYPTION_SECRET**, response encryption mechanism will be disabled automatically.
```applescript
PORT=4001PROJECT=OTH
MODULE=AuthServer
ENVIRONMENT=LocalCLIENT_URL=http://localhost:4200
ADMIN_CLIENT_URLS="http://localhost:4202"DATABASE_URL={Database Connection Url}
POSTGRESQL_CONNECTION_LIMIT={Postgresql Connection Limit}MONGODB_URI={Database Connection Url}
MONGODB_CONNECTION_LIMIT={MongoDB Connection Limit}CLOUDAMQP_APIKEY={MQ Api Key}
CLOUDAMQP_URL={MQ Connection Url}AUTH_SERVER_QUEUE_CHANNEL=oth_auth_queue
ORCHESTRATION_SERVER_QUEUE_CHANNEL=oth_orchestration_queueREDISCLOUD_URL={Redis Connection Url}
REDIS_CONNECTION_LIMIT={Redis Connection Limit}AUTO_VERIFY=false
ACCESS_TOKEN_EXPIRE=1hour
ACCESS_TOKEN_SECRET={Access Token Secret}REFRESH_TOKEN_EXPIRE=30days
REFRESH_TOKEN_SECRET={Refresh Token Secret}JOIN_TEAM_TOKEN_EXPIRE=10days
JOIN_TEAM_TOKEN_SECRET={Join Team Token Secret}RESET_PASSWORD_TOKEN_EXPIRE=1day
RESET_PASSWORD_TOKEN_SECRET={Reset Token Secret}VERIFICATION_TOKEN_SECRET={Verification Token Secret
RESPONSE_ENCRYPTION_SECRET={Response Encryption Secret}
PREAUTH_TOKEN_SECRET={Pre Auth Token Secret}
TWO_FACTOR_EXPIRE=90
TWO_FACTOR_CODE_LENGTH=5
TWO_FACTOR_CODE_TYPE=numeric
```## Social Login Configurations
To be able to use social login mechanism, refer to **[SOCIAL_LOGIN.md](docs/SOCIAL_LOGIN.md)** file.
## Postman Regression Tests
To be able to configure regression tests, refer to **[REGRESSION_TESTS.md](docs/REGRESSION_TESTS.md)** file.
## Http Requests
You 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)
## Contributors
Furkan Yavuz
💬 📖 👀
Fatih Turker
💬 📖 👀
Mert Sarac
💬 📖 👀
## Contributing
Refer to **[CONTRIBUTING.md](https://github.com/open-template-hub/.github/blob/master/docs/CONTRIBUTING.md)** to see how to contribute to Open Template Hub.
## Code of Conduct
Refer 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.
## LICENSE
The source code for this project is released under the [MIT License](LICENSE).