Skip to content

Commit

Permalink
fix Bug 65812
Browse files Browse the repository at this point in the history
  • Loading branch information
andreysavihin committed Jan 12, 2024
1 parent c5d666b commit 8909670
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web/ASC.Web.Api/Api/Settings/LdapController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public LdapController(
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapSettingsDto, ASC.Web.Api">LDAP settings</returns>
/// <path>api/2.0/settings/ldap</path>
/// <httpMethod>GET</httpMethod>
/// <visible>false</visible>
[HttpGet("ldap")]
public async Task<LdapSettingsDto> GetLdapSettingsAsync()
{
Expand Down Expand Up @@ -111,6 +112,7 @@ public async Task<LdapSettingsDto> GetLdapSettingsAsync()
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapCronSettingsDto, ASC.Web.Api">LDAP cron settings</returns>
/// <path>api/2.0/settings/ldap/cron</path>
/// <httpMethod>GET</httpMethod>
/// <visible>false</visible>
[HttpGet("ldap/cron")]
public async Task<LdapCronSettingsDto> GetLdapCronSettingsAsync()
{
Expand Down Expand Up @@ -138,6 +140,7 @@ public async Task<LdapCronSettingsDto> GetLdapCronSettingsAsync()
/// <param type="ASC.Web.Api.ApiModels.RequestsDto.LdapCronRequestDto, ASC.Web.Api" name="inDto">LDAP cron request parameters</param>
/// <httpMethod>POST</httpMethod>
/// <returns></returns>
/// <visible>false</visible>
[HttpPost("ldap/cron")]
public async Task SetLdapCronSettingsAsync(LdapCronRequestDto inDto)
{
Expand Down Expand Up @@ -185,6 +188,7 @@ public async Task SetLdapCronSettingsAsync(LdapCronRequestDto inDto)
/// <path>api/2.0/settings/ldap/sync</path>
/// <httpMethod>GET</httpMethod>
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapStatusDto, ASC.Web.Api">LDAP operation status</returns>
/// <visible>false</visible>
[HttpGet("ldap/sync")]
public async Task<LdapStatusDto> SyncLdapAsync()
{
Expand All @@ -211,6 +215,7 @@ public async Task<LdapStatusDto> SyncLdapAsync()
/// <path>api/2.0/settings/ldap/sync/test</path>
/// <httpMethod>GET</httpMethod>
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapStatusDto, ASC.Web.Api">LDAP operation status</returns>
/// <visible>false</visible>
[HttpGet("ldap/sync/test")]
public async Task<LdapStatusDto> TestLdapSync()
{
Expand All @@ -236,6 +241,7 @@ public async Task<LdapStatusDto> TestLdapSync()
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapStatusDto, ASC.Web.Api">LDAP operation status</returns>
/// <path>api/2.0/settings/ldap</path>
/// <httpMethod>POST</httpMethod>
/// <visible>false</visible>
[HttpPost("ldap")]
public async Task<LdapStatusDto> SaveLdapSettingsAsync(LdapRequestsDto inDto)
{
Expand Down Expand Up @@ -268,6 +274,7 @@ public async Task<LdapStatusDto> SaveLdapSettingsAsync(LdapRequestsDto inDto)
/// <path>api/2.0/settings/ldap/save/test</path>
/// <httpMethod>POST</httpMethod>
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapStatusDto, ASC.Web.Api">LDAP operation status</returns>
/// <visible>false</visible>
[HttpPost("ldap/save/test")]
public async Task<LdapStatusDto> TestLdapSaveAsync(LdapSettings inDto)
{
Expand All @@ -292,6 +299,7 @@ public async Task<LdapStatusDto> TestLdapSaveAsync(LdapSettings inDto)
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapStatusDto, ASC.Web.Api">LDAP operation status</returns>
/// <path>api/2.0/settings/ldap/status</path>
/// <httpMethod>GET</httpMethod>
/// <visible>false</visible>
[HttpGet("ldap/status")]
public async Task<LdapStatusDto> GetLdapOperationStatusAsync()
{
Expand All @@ -314,6 +322,7 @@ public async Task<LdapStatusDto> GetLdapOperationStatusAsync()
/// <returns type="ASC.Web.Api.ApiModels.ResponseDto.LdapSettingsDto, ASC.Web.Api">LDAP default settings: enable LDAP authentication or not, start TLS or not, enable SSL or not, send welcome email or not, server name, user name, port number, user filter, login attribute, LDAP settings mapping, access rights, user is a group member or not, group name, user attribute, group filter, group attribute, group name attribute, authentication is enabled or not, login, password, accept certificate or not</returns>
/// <path>api/2.0/settings/ldap/default</path>
/// <httpMethod>GET</httpMethod>
/// <visible>false</visible>
[HttpGet("ldap/default")]
public async Task<LdapSettingsDto> GetDefaultLdapSettingsAsync()
{
Expand Down
3 changes: 3 additions & 0 deletions web/ASC.Web.Api/Api/Settings/VersionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public VersionController(
/// <httpMethod>GET</httpMethod>
/// <requiresAuthorization>false</requiresAuthorization>
/// <returns type="ASC.Api.Settings.BuildVersion, ASC.Web.Api">Current product versions</returns>
/// <visible>false</visible>
[AllowAnonymous]
[AllowNotPayment]
[HttpGet("version/build")]
Expand All @@ -74,6 +75,7 @@ public async Task<BuildVersion> GetBuildVersionsAsync()
/// <path>api/2.0/settings/version</path>
/// <httpMethod>GET</httpMethod>
/// <returns type="ASC.Web.Api.ApiModel.ResponseDto.TenantVersionDto, ASC.Web.Api">List of availibe portal versions including the current version</returns>
/// <visible>false</visible>
[HttpGet("version")]
public async Task<TenantVersionDto> GetVersionsAsync()
{
Expand All @@ -92,6 +94,7 @@ public async Task<TenantVersionDto> GetVersionsAsync()
/// <path>api/2.0/settings/version</path>
/// <httpMethod>PUT</httpMethod>
/// <returns type="ASC.Web.Api.ApiModel.ResponseDto.TenantVersionDto, ASC.Web.Api">List of availibe portal versions including the current version</returns>
/// <visible>false</visible>
[HttpPut("version")]
public async Task<TenantVersionDto> SetVersionAsync(SettingsRequestsDto inDto)
{
Expand Down

0 comments on commit 8909670

Please sign in to comment.