mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 10:24:44 +08:00
删除原有的应用判定
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
// ***********************************************************************
|
||||
// Assembly : SmartSSO
|
||||
// Author : yubaolee
|
||||
// Created : 06-08-2016
|
||||
//
|
||||
// Last Modified By : yubaolee
|
||||
// Last Modified On : 07-06-2016
|
||||
// Contact :
|
||||
// File: AppInfo.cs
|
||||
// ***********************************************************************
|
||||
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.App.SSO
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序信息
|
||||
/// </summary>
|
||||
public class AppInfo
|
||||
{
|
||||
public string AppKey { get; set; }
|
||||
|
||||
public string AppSecret { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
|
||||
public string Icon { get; set; }
|
||||
|
||||
public string ReturnUrl { get; set; }
|
||||
|
||||
public bool IsEnable { get; set; }
|
||||
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.App.SSO
|
||||
{
|
||||
public class AppInfoService
|
||||
{
|
||||
public AppInfo Get(string appKey)
|
||||
{
|
||||
//可以从数据库读取
|
||||
return _applist.SingleOrDefault(u => u.AppKey == appKey);
|
||||
}
|
||||
|
||||
private AppInfo[] _applist = new[]
|
||||
{
|
||||
new AppInfo
|
||||
{
|
||||
AppKey = "openauth",
|
||||
Icon = "/Areas/SSO/Content/images/logo.png",
|
||||
IsEnable = true,
|
||||
Remark = "基于DDDLite的权限管理系统",
|
||||
ReturnUrl = "http://localhost:56813",
|
||||
Title = "OpenAuth.Core",
|
||||
CreateTime = DateTime.Now,
|
||||
},
|
||||
new AppInfo
|
||||
{
|
||||
AppKey = "openauthtest",
|
||||
Icon = "/Areas/SSO/Content/images/logo.png",
|
||||
IsEnable = true,
|
||||
Remark = "这只是个模拟的测试站点",
|
||||
ReturnUrl = "http://localhost:53050",
|
||||
Title = "OpenAuth.Core测试站点",
|
||||
CreateTime = DateTime.Now,
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user