mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
调整为多租户模式
This commit is contained in:
42
Infrastructure/AppSetting.cs
Normal file
42
Infrastructure/AppSetting.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
namespace Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 配置项
|
||||
/// </summary>
|
||||
public class AppSetting
|
||||
{
|
||||
|
||||
public AppSetting()
|
||||
{
|
||||
SSOPassport = "http://localhost:52789";
|
||||
Version = "";
|
||||
UploadPath = "";
|
||||
IdentityServerUrl = "";
|
||||
DbType = Define.DBTYPE_SQLSERVER;
|
||||
}
|
||||
/// <summary>
|
||||
/// SSO地址
|
||||
/// </summary>
|
||||
public string SSOPassport { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 版本信息
|
||||
/// 如果为demo,则屏蔽Post请求
|
||||
/// </summary>
|
||||
public string Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库类型 SqlServer、MySql
|
||||
/// </summary>
|
||||
public string DbType { get; set; }
|
||||
|
||||
/// <summary> 附件上传路径</summary>
|
||||
public string UploadPath { get; set; }
|
||||
|
||||
//identity授权的地址
|
||||
public string IdentityServerUrl { get; set; }
|
||||
|
||||
//是否是Identity授权方式
|
||||
public bool IsIdentityAuth => !string.IsNullOrEmpty(IdentityServerUrl);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user