Expand portal onboarding and administration
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

This commit is contained in:
tegwick 2026-08-08 23:09:23 +02:00
parent 3d334479e9
commit 8229c6dd33
17 changed files with 1601 additions and 32 deletions

View file

@ -10,6 +10,7 @@ from user_engine.adapters import (
PostgresUserEngineStore,
VerifiedIdentityClaimsAdapter,
HTTPIdentityProvisioningAdapter,
HTTPTenantManagementAdapter,
)
from user_engine.service import UserEngineService
from user_engine.oidc import OIDCClient
@ -39,6 +40,12 @@ def create_application() -> PortalApplication:
),
authorization=LocalAuthorizationCheckPort(),
)
tenant_management = None
if os.environ.get("USER_ENGINE_TENANT_MANAGEMENT_URL"):
tenant_management = HTTPTenantManagementAdapter(
base_url=_required("USER_ENGINE_TENANT_MANAGEMENT_URL"),
bearer_token=_required("USER_ENGINE_TENANT_MANAGEMENT_TOKEN"),
)
return PortalApplication(
service,
trusted_proxy_secret=_required("USER_ENGINE_PROXY_SECRET"),
@ -56,6 +63,7 @@ def create_application() -> PortalApplication:
base_url=_required("USER_ENGINE_PROVISIONING_URL"),
bearer_token=_required("USER_ENGINE_PROVISIONING_TOKEN"),
),
tenant_management=tenant_management,
)