solutions_agents.api.dependencies
Fail-closed internal authentication and runtime dependencies.
Functions
get_processor_runtime
get_processor_runtime(request: Request) -> ProcessorRuntimeReturn the lifespan-constructed Processor runtime or a retryable error.
get_runtime
get_runtime(request: Request) -> WorkflowRuntimeReturn 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)]) -> WorkflowRuntimeAuthenticate without logging or returning any token material.
require_processor_auth
require_processor_auth(credentials: Annotated[HTTPAuthorizationCredentials | None, Depends(_BEARER)], runtime: Annotated[ProcessorRuntime, Depends(get_processor_runtime)]) -> ProcessorRuntimeAuthenticate the Processor endpoint using the same internal caller boundary.