Add reusable identity provisioning adapter
This commit is contained in:
parent
268b3156f9
commit
e7e8709ca8
6 changed files with 179 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ from user_engine.adapters import (
|
|||
LocalAuthorizationCheckPort,
|
||||
PostgresUserEngineStore,
|
||||
VerifiedIdentityClaimsAdapter,
|
||||
HTTPIdentityProvisioningAdapter,
|
||||
)
|
||||
from user_engine.service import UserEngineService
|
||||
from user_engine.oidc import OIDCClient
|
||||
|
|
@ -51,6 +52,10 @@ def create_application() -> PortalApplication:
|
|||
audience=_required("USER_ENGINE_OIDC_AUDIENCE"),
|
||||
backend_url=os.environ.get("USER_ENGINE_OIDC_BACKEND_URL"),
|
||||
),
|
||||
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