DocSpace-buildtools/web/ASC.Web.Api/ApiModels/ResponseDto/CapabilitiesDto.cs

24 lines
602 B
C#
Raw Normal View History

2022-03-01 10:58:02 +00:00
namespace ASC.Web.Api.ApiModel.ResponseDto;
2022-03-15 10:00:41 +00:00
public class CapabilitiesDto
2022-03-01 08:59:06 +00:00
{
2022-03-01 10:58:02 +00:00
public bool LdapEnabled { get; set; }
public List<string> Providers { get; set; }
public string SsoLabel { get; set; }
2022-03-01 08:59:06 +00:00
2022-03-01 10:58:02 +00:00
/// <summary>
/// if empty sso is disabled
/// </summary>
public string SsoUrl { get; set; }
2022-03-01 08:59:06 +00:00
2022-03-15 10:00:41 +00:00
public static CapabilitiesDto GetSample()
2022-03-01 10:58:02 +00:00
{
2022-03-15 10:00:41 +00:00
return new CapabilitiesDto
2022-03-01 08:59:06 +00:00
{
2022-03-01 10:58:02 +00:00
LdapEnabled = false,
// Providers = AccountLinkControl.AuthProviders,
SsoLabel = string.Empty,
SsoUrl = string.Empty,
};
2022-03-01 08:59:06 +00:00
}
2022-03-01 10:58:02 +00:00
}