Expand portal onboarding and administration
This commit is contained in:
parent
3d334479e9
commit
8229c6dd33
17 changed files with 1601 additions and 32 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue