IdentityShroud/IdentityShroud.SecretProviders/ISecretProvider.cs

15 lines
438 B
C#
Raw Normal View History

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);
}