Skip to main content

revoke_api_key

Function revoke_api_key 

Source
pub async fn revoke_api_key(
    __arg0: State<SaasState>,
    __arg1: Auth,
    __arg2: Path<Uuid>,
) -> impl IntoResponse
Expand description

Revoke (delete) an API key.

Requires api_keys:write, and the key being revoked must hold nothing the caller does not: otherwise a narrow key that can manage keys could revoke the tenant’s * key and lock its owner out.