- Enhanced TenantMiddleware to validate tenant information from JWT tokens. - Added LicenseValidationMiddleware to check tenant licenses before processing requests. - Updated security utilities to extract tenant information from tokens and validate company access. - Introduced CompanyStore to manage active company state and handle company switching in the frontend. - Modified API routes to include company_id in requests for better resource management. - Improved logging and error handling throughout the middleware and API layers. - Updated frontend components to reflect changes in company management and selection. - Added new API route for fetching user's companies with proper authentication handling.
40 lines
647 B
Plaintext
40 lines
647 B
Plaintext
# Core Framework
|
|
fastapi==0.119.0
|
|
uvicorn[standard]==0.37.0
|
|
pydantic==2.12.3
|
|
pydantic[email]==2.12.3
|
|
pydantic-settings==2.11.0
|
|
|
|
# Database
|
|
sqlalchemy==2.0.44
|
|
alembic==1.17.0
|
|
psycopg2-binary==2.9.11
|
|
asyncpg==0.30.0
|
|
|
|
# Authentication & Authorization
|
|
python-keycloak==5.8.1
|
|
python-jose[cryptography]==3.5.0
|
|
passlib[bcrypt]==1.7.4
|
|
|
|
# HTTP & API
|
|
httpx==0.28.1
|
|
requests==2.32.5
|
|
|
|
# Utilities
|
|
python-multipart==0.0.20
|
|
python-dotenv==1.1.1
|
|
tenacity==9.1.2
|
|
|
|
# Monitoring & Logging
|
|
prometheus-client==0.23.1
|
|
python-json-logger==4.0.0
|
|
|
|
# Development
|
|
pytest==8.4.2
|
|
pytest-asyncio==1.2.0
|
|
pytest-cov==7.0.0
|
|
black==25.9.0
|
|
flake8==7.3.0
|
|
mypy==1.18.2
|
|
pylint==4.0.2
|