Implemented SSO for google and github

This commit is contained in:
Xoconoch
2025-08-04 10:01:07 -06:00
parent 1da75a3fbc
commit 66ec587e5b
16 changed files with 1006 additions and 337 deletions

View File

@@ -1,3 +1,4 @@
# Docker Compose environment variables# Delete all comments of this when deploying (everything that is )
# Redis connection (external or internal)
@@ -18,13 +19,22 @@ PGID=1000
# Optional: Sets the default file permissions for newly created files within the container.
UMASK=0022
# Auth
# Basic Authentication
ENABLE_AUTH=true
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRATION_HOURS=24
# Default Admin User (created automatically if no users exist)
DEFAULT_ADMIN_USERNAME=admin
DEFAULT_ADMIN_PASSWORD=admin123
DEFAULT_ADMIN_PASSWORD=admin123
# SSO Configuration
SSO_ENABLED=true
SSO_BASE_REDIRECT_URI=http://127.0.0.1:7171/api/auth/sso/callback
FRONTEND_URL=http://127.0.0.1:7171
# Google SSO (get from Google Cloud Console)
GOOGLE_CLIENT_ID=1054877638335-fube9mge425k2gnpprjcf8fvm5a0tefc.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=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
# GitHub SSO (get from GitHub Developer Settings)
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=