feat: 搭建双token
fix: 修复签到记录问题
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user