1
0
Fork 0
Single sign-on (SSO) Service
Go to file
Ruben Meyer 5457ff3f05
web - add login timeout
2021-08-15 13:32:20 +02:00
bin web - add login timeout 2021-08-15 13:32:20 +02:00
res/web web - add mfa-support 2021-08-14 02:51:44 +02:00
.gitignore git - ignore files in .notes 2020-09-16 16:25:08 +02:00
README.md git - more specific README.md 2020-09-26 22:46:31 +02:00
app.js web,prometheus - initial support 2020-09-26 22:23:52 +02:00
package.json web - add mfa-support 2021-08-14 02:51:44 +02:00

README.md

auth.rxbn.de - Single sign-on (SSO) Service

Single sign-on authentication service for rxbn.de services

Environment variables

  • DB_URL := MongoDB Connection URI String Format, ex.: mongodb://mongoDBUser:mongoDBPassword@localhost:27017/admin
  • DB_NAME := MongoDB Database, ex.: authRxbn
  • SESSION_KEY := SessionKey to encrypt sessions
  • COOKIE_KEY := CookieKey to encrypt cookies
  • PROMETHEUS_USER := PrometheusUser for basic authentication on prometheus endpoints, ex.: test
  • PROMETHEUS_PW := PrometheusPassword for basic authentication on prometheus endpoints, ex.: test

start server

regular

$ DB_URL="mongodb://user:pass@ip:port/authdb" DB_NAME="authRxbn" SESSION_KEY="32byteHexString" COOKIE_KEY="32byteHexString" PROMETHEUS_USER="authUsername" PROMETHEUS_PW="authPassword" node app.js

debug

$ DB_URL="mongodb://user:pass@ip:port/authdb" DB_NAME="authRxbn" SESSION_KEY="32byteHexString" COOKIE_KEY="32byteHexString" PROMETHEUS_USER="authUsername" PROMETHEUS_PW="authPassword" NODE_ENV=debug node app.js