Connect P04 audited recovery to fresh-MFA platform browser flow
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
b2cce8dd7c
commit
58e07dd4df
7 changed files with 201 additions and 7 deletions
|
|
@ -17,6 +17,7 @@ from user_engine.adapters import (
|
|||
from user_engine.service import UserEngineService
|
||||
from user_engine.oidc import OIDCClient
|
||||
from user_engine.web import PortalApplication
|
||||
from user_engine.factor_recovery import FactorRecoveryClient
|
||||
|
||||
|
||||
def create_application() -> PortalApplication:
|
||||
|
|
@ -76,6 +77,8 @@ def create_application() -> PortalApplication:
|
|||
audience=_required("USER_ENGINE_OIDC_AUDIENCE"),
|
||||
backend_url=os.environ.get("USER_ENGINE_OIDC_BACKEND_URL"),
|
||||
),
|
||||
factor_recovery=(FactorRecoveryClient(os.environ["USER_ENGINE_FACTOR_RECOVERY_URL"])
|
||||
if os.environ.get("USER_ENGINE_FACTOR_RECOVERY_URL") else None),
|
||||
provisioning=HTTPIdentityProvisioningAdapter(
|
||||
base_url=_required("USER_ENGINE_PROVISIONING_URL"),
|
||||
bearer_token=_required("USER_ENGINE_PROVISIONING_TOKEN"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue