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

24 lines
626 B
C#
Raw Normal View History

2022-03-01 10:58:02 +00:00
namespace ASC.Web.Api.ApiModel.ResponseDto;
public class CapabilitiesResponseDto
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-01 10:58:02 +00:00
public static CapabilitiesResponseDto GetSample()
{
return new CapabilitiesResponseDto
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
}