feat: 搭建双token

fix: 修复签到记录问题
This commit is contained in:
橙子
2024-01-23 23:35:38 +08:00
parent e0fa97f7a2
commit c18334002c
7 changed files with 87 additions and 32 deletions

View File

@@ -12,6 +12,11 @@ namespace Yi.Framework.Rbac.Domain.Shared.Options
public string Audience { get; set; }
public string RefreshIssuer { get; set; }
public string RefreshAudience { get; set; }
public string SecurityKey { get; set; }
public long ExpiresMinuteTime { get; set; }

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Rbac.Domain.Shared.Options
{
/// <summary>
/// 刷新token
/// </summary>
public class RefreshJwtOptions: JwtOptions
{
}
}

View File

@@ -16,7 +16,7 @@ namespace Yi.Framework.Rbac.Domain.Shared
{
var configuration = context.Services.GetConfiguration();
Configure<JwtOptions>(configuration.GetSection(nameof(JwtOptions)));
Configure<RefreshJwtOptions>(configuration.GetSection(nameof(RefreshJwtOptions)));
Configure<RbacOptions>(configuration.GetSection(nameof(RbacOptions)));
}
}