重构代码
重构代码
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.IOCOptions
|
||||
{
|
||||
public class AuthorizationOptions
|
||||
{
|
||||
public string Refresh { get; set; }
|
||||
public List<string> WhiteList { get; set; }
|
||||
public List<string> AccountList { get; set; }
|
||||
public List<string> UserList { get; set; }
|
||||
|
||||
public List<string> TenantList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,32 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Common.IOCOptions
|
||||
{
|
||||
public class JWTTokenOptions
|
||||
{
|
||||
public string Audience
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string SecurityKey
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
//public SigningCredentials Credentials
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
public string Issuer
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public string Audience { get; set; }
|
||||
|
||||
public string Issuer { get; set; }
|
||||
|
||||
public string SecurityKey { get; set; }
|
||||
|
||||
public string DefaultScheme { get; set; }
|
||||
public int Expiration { get; set; }
|
||||
|
||||
public int ReExpiration { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user