DigitalFactory/Admin.NET/Admin.NET.Application/Configuration/JWT.json

17 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
"JWTSettings": {
"ValidateIssuerSigningKey": true, // 是否验证密钥bool 类型默认true
"IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥string 类型必须是复杂密钥长度大于16
"ValidateIssuer": true, // 是否验证签发方bool 类型默认true
"ValidIssuer": "Admin.NET", // 签发方string 类型
"ValidateAudience": true, // 是否验证签收方bool 类型默认true
"ValidAudience": "Admin.NET", // 签收方string 类型
"ValidateLifetime": true, // 是否验证过期时间bool 类型默认true建议true
//"ExpiredTime": 20, // 过期时间long 类型单位分钟默认20分钟最大支持 13 年
"ClockSkew": 5, // 过期时间容错值long 类型单位秒默认5秒
"Algorithm": "HS256", // 加密算法string 类型,默认 HS256
"RequireExpirationTime": true // 验证过期时间,设置 false 将永不过期
}
}