OpenAuth.Net/OpenAuth.WebApi/Areas/SSO/Models/Services/AppInfoService.cs
2016-07-08 19:08:47 +08:00

23 lines
686 B
C#

using System;
namespace OpenAuth.WebApi.Areas.SSO.Models.Services
{
public class AppInfoService : ServiceContext
{
public AppInfo Get(string appKey)
{
//可以从数据库读取
return new AppInfo
{
AppKey = "670b14728ad9902aecba32e22fa4f6bd",
AppSecret = "670b14728ad9902aecba32e22fa4f6bd",
Icon = "/Content/img/default-app.png",
IsEnable = true,
Remark = "OpenAuth.net",
ReturnUrl = "http://localhost:53050",
Title = "OpenAuth.Net",
CreateTime = DateTime.Now,
};
}
}
}