Skip to content

Commit

Permalink
Move TrustAuthService from dl_core to dl_api_commons (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
MCPN authored Nov 9, 2023
1 parent 0c793c3 commit dc5f57b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/dl_control_api/dl_control_api/app_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def set_up_environment(
testing_app_settings: Optional[ControlApiAppTestingsSettings] = None,
) -> EnvSetupResult:
us_auth_mode: USAuthMode
from dl_core.flask_utils.trust_auth import TrustAuthService
from dl_api_commons.flask.middlewares.trust_auth import TrustAuthService

TrustAuthService(
fake_user_id="_user_id_",
Expand Down
2 changes: 1 addition & 1 deletion lib/dl_api_lib_testing/dl_api_lib_testing/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import flask

from dl_api_commons.aio.middlewares.auth_trust_middleware import auth_trust_middleware
from dl_api_commons.flask.middlewares.trust_auth import TrustAuthService
from dl_api_lib.app.control_api.app import ControlApiAppFactory
from dl_api_lib.app.control_api.app import EnvSetupResult as ControlApiEnvSetupResult
from dl_api_lib.app.data_api.app import DataApiAppFactory
Expand Down Expand Up @@ -42,7 +43,6 @@
from dl_core.aio.middlewares.services_registry import services_registry_middleware
from dl_core.aio.middlewares.us_manager import service_us_manager_middleware
from dl_core.data_processing.cache.primitives import CacheTTLConfig
from dl_core.flask_utils.trust_auth import TrustAuthService
from dl_core.services_registry.entity_checker import EntityUsageChecker
from dl_core.services_registry.env_manager_factory_base import EnvManagerFactory
from dl_core.services_registry.inst_specific_sr import InstallationSpecificServiceRegistryFactory
Expand Down

0 comments on commit dc5f57b

Please sign in to comment.