using Infrastructure;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using OpenAuth.App;
namespace OpenAuth.Mvc.Controllers
{
///
/// 系统配置信息
///
public class SysConfController : Controller
{
private IOptions _appConfiguration;
public SysConfController(IOptions appConfiguration)
{
_appConfiguration = appConfiguration;
}
///
/// 是否Identity认证
///
///
[AllowAnonymous]
public string IsIdentityAuth()
{
var result = new Response
{
Result = _appConfiguration.Value.IsIdentityAuth
};
return JsonHelper.Instance.Serialize(result);
}
}
}