1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

CLI device approvals - Use single deny endpoint (#9763)

This commit is contained in:
Thomas Rittson
2024-06-26 05:54:38 +10:00
committed by GitHub
parent 4a8b44b662
commit 00801f95ce
4 changed files with 24 additions and 4 deletions

View File

@@ -61,4 +61,14 @@ export class OrganizationAuthRequestApiService {
false,
);
}
async denyPendingRequest(organizationId: string, requestId: string): Promise<void> {
await this.apiService.send(
"POST",
`/organizations/${organizationId}/auth-requests/${requestId}`,
new AdminAuthRequestUpdateRequest(false),
true,
false,
);
}
}

View File

@@ -85,6 +85,10 @@ export class OrganizationAuthRequestService {
);
}
async denyPendingRequest(organizationId: string, requestId: string) {
await this.organizationAuthRequestApiService.denyPendingRequest(organizationId, requestId);
}
/**
* Creates a copy of the user key that has been encrypted with the provided device's public key.
* @param organizationId