✨ Support OIDC
This commit is contained in:
		| @@ -21,7 +21,17 @@ public class CustomApp : ModelBase | ||||
|     public Instant? VerifiedAt { get; set; } | ||||
|     [MaxLength(4096)] public string? VerifiedAs { get; set; } | ||||
|      | ||||
|     [JsonIgnore] private ICollection<CustomAppSecret> Secrets { get; set; } = new List<CustomAppSecret>(); | ||||
|     // OIDC/OAuth specific properties | ||||
|     [MaxLength(4096)] public string? LogoUri { get; set; } | ||||
|     [MaxLength(1024)] public string? ClientUri { get; set; } | ||||
|     [MaxLength(4096)] public string[] RedirectUris { get; set; } = []; | ||||
|     [MaxLength(4096)] public string[]? PostLogoutRedirectUris { get; set; } | ||||
|     [MaxLength(256)] public string[]? AllowedScopes { get; set; } = ["openid", "profile", "email"]; | ||||
|     [MaxLength(256)] public string[] AllowedGrantTypes { get; set; } = ["authorization_code", "refresh_token"]; | ||||
|     public bool RequirePkce { get; set; } = true; | ||||
|     public bool AllowOfflineAccess { get; set; } = false; | ||||
|      | ||||
|     [JsonIgnore] public ICollection<CustomAppSecret> Secrets { get; set; } = new List<CustomAppSecret>(); | ||||
|  | ||||
|     public Guid PublisherId { get; set; } | ||||
|     public Publisher.Publisher Developer { get; set; } = null!; | ||||
| @@ -31,8 +41,9 @@ public class CustomAppSecret : ModelBase | ||||
| { | ||||
|     public Guid Id { get; set; } = Guid.NewGuid(); | ||||
|     [MaxLength(1024)] public string Secret { get; set; } = null!; | ||||
|     [MaxLength(4096)] public string? Remarks { get; set; } = null!; | ||||
|     [MaxLength(4096)] public string? Description { get; set; } = null!; | ||||
|     public Instant? ExpiredAt { get; set; } | ||||
|     public bool IsOidc { get; set; } = false; // Indicates if this secret is for OIDC/OAuth | ||||
|      | ||||
|     public Guid AppId { get; set; } | ||||
|     public CustomApp App { get; set; } = null!; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user