From f208e75f9e074a3faab489de1093f660b87c2ec7 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 10 Dec 2022 16:56:33 +0800 Subject: Develop secret api. v24 --- .../CrupestApi.Secrets/ISecretsService.cs | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 docker/crupest-api/CrupestApi/CrupestApi.Secrets/ISecretsService.cs (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Secrets/ISecretsService.cs') diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/ISecretsService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/ISecretsService.cs deleted file mode 100644 index b5de436..0000000 --- a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/ISecretsService.cs +++ /dev/null @@ -1,23 +0,0 @@ -namespace CrupestApi.Secrets; - -public interface ISecretsService -{ - Task GetSecretAsync(string secret); - - Task> GetSecretListAsync(bool includeExpired = false, bool includeRevoked = false); - - Task> GetSecretListByKeyAsync(string key, bool includeExpired = false, bool includeRevoked = false); - - Task VerifySecretAsync(string? key, string? secret); - - // Check if "secret" query param exists and is only one. Then check the secret is valid for given key. - // If check fails, will throw a VerifySecretException with proper message that can be send to client. - Task VerifySecretForHttpRequestAsync(HttpRequest request, string? key = null, string queryKey = "secret"); - - Task CreateSecretAsync(string key, string description, DateTime? expireTime = null); - - Task RevokeSecretAsync(string secret); - - // Throw SecretNotExistException if request secret does not exist. - Task ModifySecretAsync(string secret, SecretModifyRequest modifyRequest); -} -- cgit v1.2.3