Skip to content

Qnets SSO Server, Based on JWT;Qnets SSO 单点登录服务端,基于 JWT 实现

License

Notifications You must be signed in to change notification settings

hzh11012/qnets-sso-koa2

Repository files navigation

Qnets Auth Center

Qnets SSO Server, Based on JWT

English · 中文

Quick Start

Environment Variables

Incomplete environment variables will result in service unavailability. Please go to supplement

Development Env · Production Env

  • NODE_PORT:Service port, default 4800
  • DB_NAME:MySQL database name, default test
  • DB_HOST:MySQL database host, default localhost
  • DB_PORT:MySQL database port, default 3306
  • DB_USER:MySQL database user, default root
  • DB_PASSWORD:MySQL database password, default 123456
  • ACCESS_TOKEN_SECRET_KEY:Access token secret key
  • REFRESH_TOKEN_SECRET_KEY:Refresh token secret key
  • ACCESS_TOKEN_EXPIRES_IN:Access token expiration time, default 1小时
  • REFRESH_TOKEN_EXPIRES_IN:Refresh token expiration time, default 7天
  • SMS_APP_ID:Tencent Cloud SMS Application ID
  • SMS_SIGN_NAME:Tencent Cloud SMS Signature Content
  • SMS_TEMPLATE_ID:Tencent Cloud SMS Template ID
  • SMS_SECRET_ID:Tencent Cloud SMS SecretId
  • SMS_SECRET_KEY:Tencent Cloud SMS SecretKey
  • SMS_REGION:Tencent Cloud SMS Region
  • COOKIES_DOMAIN:The effective domain of cookies
  • COOKIES_OVERWRITE:Cookies are allowed to be overwritten, default true

Development

$ yarn
$ yarn dev

Production

$ yarn
$ yarn prd

API

API Document

Star History

Star History Chart

Contributors

License

MIT

About

Qnets SSO Server, Based on JWT;Qnets SSO 单点登录服务端,基于 JWT 实现

Resources

License

Stars

Watchers

Forks