Skip to content

solutions_agents.api.dependencies

Fail-closed internal authentication and runtime dependencies.

Functions

get_runtime

get_runtime(request: Request) -> WorkflowRuntime

Return the lifespan-constructed runtime or a retryable readiness error.

require_internal_auth

require_internal_auth(credentials: Annotated[HTTPAuthorizationCredentials | None, Depends(_BEARER)], runtime: Annotated[WorkflowRuntime, Depends(get_runtime)]) -> WorkflowRuntime

Authenticate without logging or returning any token material.