diff --git a/.gitignore b/.gitignore index d838da9..48f4cd2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,98 @@ +# ============================================================================= +# Project-wide Git Ignore Rules +# ============================================================================= + +# Examples and documentation drafts examples/ + +# ============================================================================= +# Environment & Secrets (CRITICAL - DO NOT COMMIT) +# ============================================================================= +.env +.env.local +.env.production +.env.*.local +secrets/ +*.pem +*.key +*.json.secret +*credentials*.json + +# ============================================================================= +# Operating System Files +# ============================================================================= +# macOS +.DS_Store +.AppleDouble +.LSOverride +._* + +# Windows +Thumbs.db +ehthumbs.db +Desktop.ini +$RECYCLE.BIN/ + +# Linux +*~ +.directory + +# ============================================================================= +# IDE & Editor Files +# ============================================================================= +# VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# JetBrains IDEs (PyCharm, WebStorm, IntelliJ) +.idea/ +*.iml +*.ipr +*.iws +.idea_modules/ + +# Vim +*.swp +*.swo +*~ +.*.sw? + +# Emacs +*~ +\#*\# +.\#* + +# Sublime Text +*.sublime-project +*.sublime-workspace + +# ============================================================================= +# Docker +# ============================================================================= +docker-compose.override.yml +*.log + +# ============================================================================= +# Backup Files +# ============================================================================= +*.backup +*.bak +*.tmp +*.temp +.backup.* + +# ============================================================================= +# Documentation Artifacts +# ============================================================================= +docs/*.pdf +*.pdf.tmp + +# ============================================================================= +# Project-specific +# ============================================================================= +# Deployment backups (created by deployment scripts) +/var/www/html/video-accessibility.backup.* diff --git a/backend/.gitignore b/backend/.gitignore new file mode 100644 index 0000000..4b42251 --- /dev/null +++ b/backend/.gitignore @@ -0,0 +1,162 @@ +# ============================================================================= +# Python Backend Git Ignore Rules +# ============================================================================= + +# ============================================================================= +# Python +# ============================================================================= +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +test-results/ +junit.xml + +# Translations +*.mo +*.pot + +# Django stuff (if applicable) +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff (if applicable) +instance/ +.webassets-cache + +# Scrapy stuff (if applicable) +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# ============================================================================= +# Python Virtual Environments +# ============================================================================= +venv/ +ENV/ +env/ +.venv/ +.ENV/ +.env.venv/ +poetry.lock.venv + +# ============================================================================= +# Poetry +# ============================================================================= +poetry.toml + +# ============================================================================= +# Environment Variables & Secrets +# ============================================================================= +.env +.env.local +.env.production +.env.*.local +*.env + +# GCP Service Account Keys (CRITICAL) +*credentials*.json +*.json.key +service-account*.json + +# ============================================================================= +# Type Checking & Linting +# ============================================================================= +.mypy_cache/ +.dmypy.json +dmypy.json +.ruff_cache/ +.pylint.d/ + +# ============================================================================= +# Application Logs +# ============================================================================= +logs/ +*.log +*.log.* + +# ============================================================================= +# Database Files +# ============================================================================= +*.db +*.sqlite +*.sqlite3 + +# ============================================================================= +# Celery +# ============================================================================= +celerybeat-schedule +celerybeat.pid + +# ============================================================================= +# Temporary & Debug Files +# ============================================================================= +*.pyc +*.pyo +*.pyd +.Python +*.so +*.egg +*.egg-info +debug_*.py +test_*.temp.py +scratch*.py diff --git a/frontend/src/lib/auth.ts b/frontend/src/lib/auth.ts index 58052d2..f3cc3a6 100644 --- a/frontend/src/lib/auth.ts +++ b/frontend/src/lib/auth.ts @@ -26,6 +26,7 @@ export const useAuthStore = create((set) => ({ email: email, full_name: '', // Will be populated from user profile role: response.role as UserRole, + auth_provider: 'local', // Local login always uses local auth is_active: true, created_at: '', }; @@ -56,6 +57,7 @@ export const useAuthStore = create((set) => ({ email: response.email, full_name: response.full_name, role: response.role as UserRole, + auth_provider: 'local', // Default to local, will be updated if user fetched is_active: true, created_at: '', }; diff --git a/frontend/src/lib/msalConfig.ts b/frontend/src/lib/msalConfig.ts index 343c832..0369be1 100644 --- a/frontend/src/lib/msalConfig.ts +++ b/frontend/src/lib/msalConfig.ts @@ -49,7 +49,6 @@ export const msalConfig: Configuration = { logLevel: import.meta.env.DEV ? LogLevel.Info : LogLevel.Error, piiLoggingEnabled: false, }, - allowNativeBroker: false, // Disable WAM broker (Windows) windowHashTimeout: 60000, iframeHashTimeout: 6000, loadFrameTimeout: 0,