namespace ObsidianMcp.Config; /// /// JWT 验签配置。 /// 环境变量:Jwt__Issuer, Jwt__Audience, Jwt__SigningKey__Current, Jwt__SigningKey__Previous /// public class JwtOptions { public const string Section = "Jwt"; /// 期望的 iss claim,生产:https://auth.zhengchentao.win public string Issuer { get; set; } = "https://auth.zhengchentao.win"; /// 期望的 aud claim,生产:obsidian public string Audience { get; set; } = "obsidian"; public SigningKeyPair SigningKey { get; set; } = new(); public class SigningKeyPair { /// 当前签名密钥(HS256 对称密钥),env: Jwt__SigningKey__Current public string Current { get; set; } = string.Empty; /// 上一轮密钥,密钥轮换过渡期用,env: Jwt__SigningKey__Previous(可为空) public string? Previous { get; set; } } }