Exemplo n.º 1
0
        public async Task <bool> VerifyApiKeyCredentialsAsync(string authScheme, string authParameter)
        {
            ThrowIfNotBasicScheme(authScheme);
            (var username, var password) = GetBasicAuthTokens(authParameter);
            var apiKey = await apiKeyRepository.GetApiKeyByUsernameAsync(username);

            return(encryptionService.VerifySecret(password, apiKey.UserSecret));
        }