From a2dc59d5efbe61184867f712e63bb0cabe2b2e97 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 6 Jan 2025 13:11:05 +0100 Subject: [PATCH] refactor(AsymCryptParams): Entfernte TokenDescriptions --- .../Config/AsymCryptParams.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/DigitalData.Core.Security/Config/AsymCryptParams.cs b/DigitalData.Core.Security/Config/AsymCryptParams.cs index e84fe9b..219ef9a 100644 --- a/DigitalData.Core.Security/Config/AsymCryptParams.cs +++ b/DigitalData.Core.Security/Config/AsymCryptParams.cs @@ -42,8 +42,6 @@ namespace DigitalData.Core.Security.Config public IEnumerable Decryptors { get; init; } = new List(); - public IEnumerable TokenDescriptions { get; init; } = new List(); - public RSADecryptor? Vault { get; init; } public AsymCryptParams() @@ -84,19 +82,6 @@ namespace DigitalData.Core.Security.Config } } }; - - // set signing credentials of token descriptions - AfterCreate += () => - { - foreach(var tDesc in TokenDescriptions) - { - if (!Decryptors.TryGet(issuer: tDesc.Issuer, tDesc.Audience, out var decryptor)) - throw new InvalidOperationException( - $"Decryptor for Issuer '{tDesc.Issuer}' and Audience '{tDesc.Audience}' could not be found or is null."); - - tDesc.SigningCredentials = decryptor.CreateSigningCredentials(algorithm: tDesc.SigningAlgorithm, digest: tDesc.SigningDigest); - } - }; } } } \ No newline at end of file