IdentityShroud/IdentityShroud.SecretProviders/ISecretProvider.cs
2026-08-18 07:42:51 +02:00

15 lines
No EOL
438 B
C#

namespace IdentityShroud.SecretProviders;
/// <summary>
/// Required interface of a SecretProvider.
/// </summary>
public interface ISecretProvider
{
/// <summary>
/// Used as a key in the registry. This same value should be used for the type field
/// when configuring a secret.
/// </summary>
string Key { get; }
Task<PlainSecret> GetSecret(string configurationValue, CancellationToken ct = default);
}