qfa.api.routes_admin#
API route handlers for auth-management endpoints.
Functions
|
Create an API key for a tenant. |
|
Create a tenant. |
|
Delete an API key by id. |
|
Delete a tenant and related keys. |
|
List API key metadata. |
|
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.