Happy flow for creating realms works

But needs more validating...
This commit is contained in:
eelke 2026-02-08 11:57:57 +01:00
parent f99c97f392
commit 92b34bd0b5
25 changed files with 437 additions and 12 deletions

View file

@ -1,34 +0,0 @@
using System.Text.Json.Serialization;
namespace IdentityShroud.Core.Messages;
public class JsonWebKey
{
[JsonPropertyName("kty")]
public string KeyType { get; set; } = "RSA";
[JsonPropertyName("use")]
public string Use { get; set; } = "sig"; // "sig" for signature, "enc" for encryption
[JsonPropertyName("alg")]
public string Algorithm { get; set; } = "RS256";
[JsonPropertyName("kid")]
public string KeyId { get; set; }
// RSA Public Key Components
[JsonPropertyName("n")]
public string Modulus { get; set; }
[JsonPropertyName("e")]
public string Exponent { get; set; }
// Optional fields
[JsonPropertyName("x5c")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string> X509CertificateChain { get; set; }
[JsonPropertyName("x5t")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string X509CertificateThumbprint { get; set; }
}