mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-25 01:13:39 +10:00
feat: add ability to review and revoke clients
This commit is contained in:
@@ -64,13 +64,13 @@ export class CertificateAuthority {
|
||||
|
||||
async fetchClientCertificate(clientId: string) {
|
||||
const isBlacklist = await this.certificateStore.checkBlacklistCertificate(
|
||||
clientId
|
||||
`client:${clientId}`
|
||||
);
|
||||
if (isBlacklist) return undefined;
|
||||
return await this.certificateStore.fetch(`client:${clientId}`);
|
||||
}
|
||||
|
||||
async blacklistClient(clientId: string) {
|
||||
await this.certificateStore.blacklistCertificate(clientId);
|
||||
await this.certificateStore.blacklistCertificate(`client:${clientId}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user