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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user