feat: Add NetID OAuth provider integration and update login UI
- Implemented NetID OAuth provider in app/auth/oauth.py - Added styles for NetID login button in app/static/css/styles.css - Updated login.html to include NetID login option with custom button - Modified docker-compose.yml to include NetID client credentials - Enhanced social login setup documentation to include NetID instructions - Created demo environment configuration file (.env.demo) for easier setup - Updated .env.template to include NetID configuration options - Added comprehensive README.md with project features and setup instructions
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
# LeagueLedger Demo Environment Configuration
|
||||
# This file contains example values for development/demo purposes
|
||||
# DO NOT use these values in production!
|
||||
|
||||
# Database Configuration
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
DB_NAME=leagueledger_demo
|
||||
DB_USER=leagueledger_user
|
||||
DB_PASSWORD=demo_password_123
|
||||
|
||||
# Application Settings
|
||||
SECRET_KEY=demo-secret-key-replace-in-production-e8a1b2c3d4e5f6
|
||||
DEBUG=True
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1,demo.leagueledger.com
|
||||
BASE_URL=http://localhost:8000
|
||||
TIMEZONE=Europe/Dublin
|
||||
|
||||
# Email Configuration
|
||||
EMAIL_BACKEND=smtp
|
||||
EMAIL_HOST=smtp.mailgun.org
|
||||
EMAIL_PORT=587
|
||||
EMAIL_USE_TLS=True
|
||||
EMAIL_HOST_USER=postmaster@demo.leagueledger.com
|
||||
EMAIL_HOST_PASSWORD=demo_mail_password_123
|
||||
DEFAULT_FROM_EMAIL=noreply@demo.leagueledger.com
|
||||
|
||||
# Security Settings
|
||||
# These are set to False for local development
|
||||
SESSION_COOKIE_SECURE=False
|
||||
CSRF_COOKIE_SECURE=False
|
||||
SECURE_BROWSER_XSS_FILTER=True
|
||||
SECURE_CONTENT_TYPE_NOSNIFF=True
|
||||
|
||||
# OAuth Providers - Example values (these are not real credentials)
|
||||
# Google
|
||||
GOOGLE_CLIENT_ID=123456789012-abcdefghijklmnopqrstuvwxyz123456.apps.googleusercontent.com
|
||||
GOOGLE_CLIENT_SECRET=GOCSPX-abcdefghijklmnopqrstuvwxyz12345
|
||||
|
||||
# Facebook
|
||||
FACEBOOK_CLIENT_ID=1234567890123456
|
||||
FACEBOOK_CLIENT_SECRET=abcdef0123456789abcdef0123456789
|
||||
|
||||
# GitHub
|
||||
GITHUB_CLIENT_ID=Iv1.abcdef1234567890
|
||||
GITHUB_CLIENT_SECRET=abcdef1234567890abcdef1234567890abcdef12
|
||||
|
||||
# LinkedIn
|
||||
LINKEDIN_CLIENT_ID=abcdefghij1234567890
|
||||
LINKEDIN_CLIENT_SECRET=ABCDEfghij1234567890abcdefghijklmno
|
||||
|
||||
# Microsoft
|
||||
MICROSOFT_CLIENT_ID=12345678-1234-1234-1234-123456789012
|
||||
MICROSOFT_CLIENT_SECRET=abc~DEF.ghiJKLmnoPQRstuvwxyz_12345678
|
||||
MICROSOFT_TENANT=common
|
||||
|
||||
# Discord
|
||||
DISCORD_CLIENT_ID=123456789012345678
|
||||
DISCORD_CLIENT_SECRET=abcDEFghi1234567890JKLMNO_pqrSTUvwxyz
|
||||
|
||||
# Authentik
|
||||
AUTHENTIK_CLIENT_ID=yourAuthentikClientID
|
||||
AUTHENTIK_CLIENT_SECRET=yourAuthentikClientSecret
|
||||
AUTHENTIK_CONFIG_URL=https://authentik.example.com/application/o/leagueledger/.well-known/openid-configuration
|
||||
|
||||
# NetID
|
||||
NETID_CLIENT_ID=leagueledger-netid-client
|
||||
NETID_CLIENT_SECRET=netid-client-secret-abcdef1234567890
|
||||
|
||||
# Feature Flags
|
||||
ENABLE_REGISTRATION=True
|
||||
ENABLE_PASSWORD_RESET=True
|
||||
ENABLE_EMAIL_VERIFICATION=True
|
||||
ENABLE_SOCIAL_LOGIN=True
|
||||
Reference in New Issue
Block a user