The EncryptionService now loads a set of keys and uses the active one to encrypt and selects key based on keyid during decryption. Introduced EncryptedValue to hold keyId and encrypted data. (There are no intermeddiate keys yet)
16 lines
No EOL
453 B
C#
16 lines
No EOL
453 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using IdentityShroud.Core.Contracts;
|
|
|
|
namespace IdentityShroud.Core.Model;
|
|
|
|
[Table("client_secret")]
|
|
public class ClientSecret
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
public Guid ClientId { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime? RevokedAt { get; set; }
|
|
public required EncryptedValue Secret { get; set; }
|
|
} |