Remove re-export shim from keycloak_auth.py, update consumer imports

- rbac_api.py: import get_current_user from auth.dependencies directly
- keycloak_auth.py: remove re-export of dependencies module symbols
- pdf_service.py, file_processor.py: remove misleading compat comments

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-27 00:13:30 +02:00
parent 92c86ec6ba
commit 3c1a2d9c41
4 changed files with 2 additions and 13 deletions

View File

@@ -27,7 +27,8 @@ try:
from auth import get_current_user, TokenExpiredError, TokenInvalidError
except ImportError:
# Fallback for standalone testing
from auth.keycloak_auth import get_current_user, TokenExpiredError, TokenInvalidError
from auth.keycloak_auth import TokenExpiredError, TokenInvalidError
from auth.dependencies import get_current_user
# Configuration from environment - NO DEFAULT SECRETS
ENVIRONMENT = os.environ.get("ENVIRONMENT", "development")