mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: paste views; configuration validation; hmacsha256 method; enhance paste clean up serivce; paste view clean up service;
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
namespace SharpbinV3.Server.Settings
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace SharpbinV3.Server.Settings
|
||||
{
|
||||
public class JWTSettings
|
||||
{
|
||||
[Required, MinLength(32), MaxLength(128)]
|
||||
public string Secret { get; set; } = string.Empty;
|
||||
[Required, MaxLength(128)]
|
||||
public string Issuer { get; set; } = "SharpbinApi";
|
||||
[Required, MaxLength(128)]
|
||||
public string Audience { get; set; } = "SharpbinClient";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user