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

@@ -374,13 +374,3 @@ class HybridAuthenticator:
if self.keycloak_auth:
await self.keycloak_auth.close()
# Re-export factory functions and FastAPI dependencies from dependencies module
# for backward compatibility with existing imports
from .dependencies import ( # noqa: E402, F401
get_keycloak_config_from_env,
get_authenticator,
get_auth,
get_current_user,
require_role,
)