qfa.api.routes_admin#

API route handlers for auth-management endpoints.

Functions

add_key(body, _tenant, auth_orchestrator)

Create an API key for a tenant.

add_tenant(body, _tenant, auth_orchestrator)

Create a tenant.

delete_key(key_id, _tenant, auth_orchestrator)

Delete an API key by id.

delete_tenant(tenant_id, _tenant, ...)

Delete a tenant and related keys.

get_auth_keys(tenant_id, _tenant, ...)

List API key metadata.

get_tenants(_tenant, auth_orchestrator)

List all tenants.

async qfa.api.routes_admin.add_tenant(body: ApiAddTenantRequest, _tenant: TenantApiKey = Depends(dependency=<function require_superuser>, use_cache=True, scope=None), auth_orchestrator: AuthOrchestrator = Depends(dependency=<function get_auth_orchestrator>, use_cache=True, scope=None)) ApiAddTenantResponse[source]#

Create a tenant. Requires superuser access.

async qfa.api.routes_admin.get_tenants(_tenant: TenantApiKey = Depends(dependency=<function require_superuser>, use_cache=True, scope=None), auth_orchestrator: AuthOrchestrator = Depends(dependency=<function get_auth_orchestrator>, use_cache=True, scope=None)) ApiTenantsResponse[source]#

List all tenants. Requires superuser access.

async qfa.api.routes_admin.delete_tenant(tenant_id: str, _tenant: TenantApiKey = Depends(dependency=<function require_superuser>, use_cache=True, scope=None), auth_orchestrator: AuthOrchestrator = Depends(dependency=<function get_auth_orchestrator>, use_cache=True, scope=None)) Response[source]#

Delete a tenant and related keys. Requires superuser access.

async qfa.api.routes_admin.add_key(body: ApiAddKeyRequest, _tenant: TenantApiKey = Depends(dependency=<function require_superuser>, use_cache=True, scope=None), auth_orchestrator: AuthOrchestrator = Depends(dependency=<function get_auth_orchestrator>, use_cache=True, scope=None)) ApiAddKeyResponse[source]#

Create an API key for a tenant. Requires superuser access.

async qfa.api.routes_admin.delete_key(key_id: str, _tenant: TenantApiKey = Depends(dependency=<function require_superuser>, use_cache=True, scope=None), auth_orchestrator: AuthOrchestrator = Depends(dependency=<function get_auth_orchestrator>, use_cache=True, scope=None)) Response[source]#

Delete an API key by id. Requires superuser access.

async qfa.api.routes_admin.get_auth_keys(tenant_id: str | None = Query(None), _tenant: TenantApiKey = Depends(dependency=<function require_superuser>, use_cache=True, scope=None), auth_orchestrator: AuthOrchestrator = Depends(dependency=<function get_auth_orchestrator>, use_cache=True, scope=None)) ApiAuthKeysResponse[source]#

List API key metadata. Requires superuser access.