using Infrastructure;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using OpenAuth.App;
namespace OpenAuth.WebApi.Controllers
{
///
/// 系统配置信息
///
[Route("api/[controller]/[action]")]
[ApiController]
[ApiExplorerSettings(GroupName = "系统配置_SysConf")]
public class SysConfController :ControllerBase
{
private IOptions _appConfiguration;
public SysConfController(IOptions appConfiguration)
{
_appConfiguration = appConfiguration;
}
///
/// 是否Identity认证
///
///
[AllowAnonymous]
[HttpGet]
public Response IsIdentityAuth()
{
return new Response
{
Result = _appConfiguration.Value.IsIdentityAuth
};
}
}
}