diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/Dtos/ApiScopeOutput.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/Dtos/PagingApiScopeListOutput.cs similarity index 90% rename from aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/Dtos/ApiScopeOutput.cs rename to aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/Dtos/PagingApiScopeListOutput.cs index cd985d69..57a7707e 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/Dtos/ApiScopeOutput.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/Dtos/PagingApiScopeListOutput.cs @@ -1,6 +1,6 @@ namespace CompanyName.ProjectName.IdentityServers.ApiScopes.Dtos { - public class ApiScopeOutput + public class PagingApiScopeListOutput { public bool Enabled { get; set; } diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/IApiScopeAppService.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/IApiScopeAppService.cs index cb455ec1..ee1acfc2 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/IApiScopeAppService.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/ApiScopes/IApiScopeAppService.cs @@ -8,7 +8,7 @@ namespace CompanyName.ProjectName.IdentityServers.ApiScopes { public interface IApiScopeAppService : IApplicationService { - Task> GetListAsync(PagingApiScopeListInput input); + Task> GetListAsync(PagingApiScopeListInput input); Task CreateAsync(CreateApiScopeInput input); diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/Dtos/ClientOutput.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/Dtos/PagingClientListOutput.cs similarity index 98% rename from aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/Dtos/ClientOutput.cs rename to aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/Dtos/PagingClientListOutput.cs index fa57a14a..ff2ebeeb 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/Dtos/ClientOutput.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/Dtos/PagingClientListOutput.cs @@ -4,7 +4,7 @@ using Volo.Abp.Application.Dtos; namespace CompanyName.ProjectName.IdentityServers.Clients { - public class ClientOutput : EntityDto + public class PagingClientListOutput : EntityDto { public string ClientId { get; set; } diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/IIdentityServerClientAppService.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/IIdentityServerClientAppService.cs index dfa0ec4d..b4a107bd 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/IIdentityServerClientAppService.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/Clients/IIdentityServerClientAppService.cs @@ -11,7 +11,7 @@ namespace CompanyName.ProjectName.IdentityServers.Clients /// 分页查询Client /// /// - Task> GetListAsync(PagingClientListInput input); + Task> GetListAsync(PagingClientListInput input); /// /// 创建Client diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/CreateIdentityResourceInput.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/CreateIdentityResourceInput.cs new file mode 100644 index 00000000..b86590ac --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/CreateIdentityResourceInput.cs @@ -0,0 +1,19 @@ +namespace CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos +{ + public class CreateIdentityResourceInput + { + public string Name { get; set; } + + public string DisplayName { get; set; } + + public string Description { get; set; } + + public bool Enabled { get; set; } + + public bool Required { get; set; } + + public bool Emphasize { get; set; } + + public bool ShowInDiscoveryDocument { get; set; } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/PagingIdentityResourceListInput.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/PagingIdentityResourceListInput.cs new file mode 100644 index 00000000..73710e9f --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/PagingIdentityResourceListInput.cs @@ -0,0 +1,9 @@ +using CompanyName.ProjectName.Extensions.Customs; + +namespace CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos +{ + public class PagingIdentityResourceListInput : PagingBase + { + public string Filter { get; set; } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/PagingIdentityResourceListOutput.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/PagingIdentityResourceListOutput.cs new file mode 100644 index 00000000..ebf23df7 --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/PagingIdentityResourceListOutput.cs @@ -0,0 +1,19 @@ +namespace CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos +{ + public class PagingIdentityResourceListOutput + { + public string Name { get; set; } + + public string DisplayName { get; set; } + + public string Description { get; set; } + + public bool Enabled { get; set; } + + public bool Required { get; set; } + + public bool Emphasize { get; set; } + + public bool ShowInDiscoveryDocument { get; set; } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/UpdateIdentityResourceInput.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/UpdateIdentityResourceInput.cs new file mode 100644 index 00000000..25bc338a --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/Dtos/UpdateIdentityResourceInput.cs @@ -0,0 +1,19 @@ +namespace CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos +{ + public class UpdateIdentityResourceInput + { + public string Name { get; set; } + + public string DisplayName { get; set; } + + public string Description { get; set; } + + public bool Enabled { get; set; } + + public bool Required { get; set; } + + public bool Emphasize { get; set; } + + public bool ShowInDiscoveryDocument { get; set; } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/IIdentityResourceAppService.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/IIdentityResourceAppService.cs new file mode 100644 index 00000000..1b10c427 --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application.Contracts/IdentityServers/IdentityResources/IIdentityResourceAppService.cs @@ -0,0 +1,40 @@ +using System.Threading.Tasks; +using CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos; +using CompanyName.ProjectName.Publics.Dtos; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Application.Services; + +namespace CompanyName.ProjectName.IdentityServers.IdentityResources +{ + public interface IIdentityResourceAppService : IApplicationService + { + /// + /// 分页获取IdentityResource + /// + /// + /// + Task> GetListAsync( + PagingIdentityResourceListInput input); + + /// + /// 创建IdentityResource + /// + /// + /// + Task CreateAsync(CreateIdentityResourceInput input); + + /// + /// 更新IdentityResource + /// + /// + /// + Task UpdateAsync(UpdateIdentityResourceInput input); + + /// + /// 删除IdentityResource + /// + /// + /// + Task DeleteAsync(IdInput input); + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/ApiScopes/ApiScopeAppService.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/ApiScopes/ApiScopeAppService.cs index af2c01cb..5afcaa3e 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/ApiScopes/ApiScopeAppService.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/ApiScopes/ApiScopeAppService.cs @@ -17,7 +17,7 @@ namespace CompanyName.ProjectName.IdentityServers.ApiScopes _idenityServerApiScopeManager = idenityServerApiScopeManager; } - public async Task> GetListAsync(PagingApiScopeListInput input) + public async Task> GetListAsync(PagingApiScopeListInput input) { var list = await _idenityServerApiScopeManager.GetListAsync( input.SkipCount, @@ -25,8 +25,8 @@ namespace CompanyName.ProjectName.IdentityServers.ApiScopes input.Filter, false); var totalCount = await _idenityServerApiScopeManager.GetCountAsync(input.Filter); - return new PagedResultDto(totalCount, - ObjectMapper.Map, List>(list)); + return new PagedResultDto(totalCount, + ObjectMapper.Map, List>(list)); } public Task CreateAsync(CreateApiScopeInput input) diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Clients/IdentityServerClientAppService.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Clients/IdentityServerClientAppService.cs index f47a1131..597d57e2 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Clients/IdentityServerClientAppService.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Clients/IdentityServerClientAppService.cs @@ -17,7 +17,7 @@ namespace CompanyName.ProjectName.IdentityServers.Clients } - public async Task> GetListAsync(PagingClientListInput input) + public async Task> GetListAsync(PagingClientListInput input) { var list = await _idenityServerClientManager.GetListAsync( input.SkipCount, @@ -25,8 +25,8 @@ namespace CompanyName.ProjectName.IdentityServers.Clients input.Filter, true); var totalCount = await _idenityServerClientManager.GetCountAsync(input.Filter); - return new PagedResultDto(totalCount, - ObjectMapper.Map, List>(list)); + return new PagedResultDto(totalCount, + ObjectMapper.Map, List>(list)); } /// diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/IdentityResources/IdentityResourceAppService.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/IdentityResources/IdentityResourceAppService.cs new file mode 100644 index 00000000..12588c44 --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/IdentityResources/IdentityResourceAppService.cs @@ -0,0 +1,71 @@ +using System.Collections.Generic; +using System.Threading.Tasks; +using CompanyName.ProjectName.IdentityServer; +using CompanyName.ProjectName.IdentityServers.IdentityResources; +using CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos; +using CompanyName.ProjectName.Publics.Dtos; +using Volo.Abp.Application.Dtos; +using Volo.Abp.IdentityServer.IdentityResources; + +namespace CompanyName.ProjectName.IdentityServers.Mappers.IdentityResources +{ + public class IdentityResourceAppService : ProjectNameAppService, IIdentityResourceAppService + { + private readonly IdentityResourceManager _identityResourceManager; + + public IdentityResourceAppService(IdentityResourceManager identityResourceManager) + { + _identityResourceManager = identityResourceManager; + } + + /// + /// 分页获取IdentityResource + /// + /// + /// + public async Task> GetListAsync( + PagingIdentityResourceListInput input) + { + var list = await _identityResourceManager.GetListAsync( + input.SkipCount, + input.PageSize, + input.Filter, + true); + var totalCount = await _identityResourceManager.GetCountAsync(input.Filter); + return new PagedResultDto(totalCount, + ObjectMapper.Map, List>(list)); + } + + /// + /// 创建IdentityResource + /// + /// + /// + public Task CreateAsync(CreateIdentityResourceInput input) + { + return _identityResourceManager.CreateAsync(input.Name, input.DisplayName, input.Description, + input.Enabled, input.Required, input.Emphasize, input.ShowInDiscoveryDocument); + } + + /// + /// 更新IdentityResource + /// + /// + /// + public Task UpdateAsync(UpdateIdentityResourceInput input) + { + return _identityResourceManager.UpdateAsync(input.Name, input.DisplayName, input.Description, + input.Enabled, input.Required, input.Emphasize, input.ShowInDiscoveryDocument); + } + + /// + /// 删除IdentityResource + /// + /// + /// + public Task DeleteAsync(IdInput input) + { + return _identityResourceManager.DeleteAsync(input.Id); + } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Mappers/IdentityServerApplicationAutoMapperProfile.cs b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/IdentityServerApplicationAutoMapperProfile.cs similarity index 67% rename from aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Mappers/IdentityServerApplicationAutoMapperProfile.cs rename to aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/IdentityServerApplicationAutoMapperProfile.cs index 2bed0d60..b99c4fc7 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/Mappers/IdentityServerApplicationAutoMapperProfile.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.Application/IdentityServers/IdentityServerApplicationAutoMapperProfile.cs @@ -1,6 +1,8 @@ using AutoMapper; +using CompanyName.ProjectName.IdentityServers.ApiScopes.Dtos; using CompanyName.ProjectName.IdentityServers.Clients; using CompanyName.ProjectName.IdentityServers.Dtos; +using CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos; using Volo.Abp.IdentityServer.ApiResources; using Volo.Abp.IdentityServer.ApiScopes; using Volo.Abp.IdentityServer.Clients; @@ -13,15 +15,13 @@ namespace CompanyName.ProjectName.IdentityServers.Mappers { public IdentityServerApplicationAutoMapperProfile() { - #region id4 model to Output - CreateMap(); CreateMap(); CreateMap(); CreateMap(); CreateMap(); - - CreateMap(); + + CreateMap(); CreateMap(); CreateMap(); CreateMap(); @@ -32,19 +32,9 @@ namespace CompanyName.ProjectName.IdentityServers.Mappers CreateMap(); CreateMap(); - // CreateMap(); - // CreateMap(); - // - // CreateMap(); - // CreateMap(); - // CreateMap(); - // - // - // CreateMap(); - // CreateMap(); - // CreateMap(); - #endregion + CreateMap(); + CreateMap(); } } } \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.Domain/IdentityServer/IdentityResourceManager.cs b/aspnet-core/services/src/CompanyName.ProjectName.Domain/IdentityServer/IdentityResourceManager.cs new file mode 100644 index 00000000..b0572318 --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.Domain/IdentityServer/IdentityResourceManager.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Domain.Services; +using Volo.Abp.IdentityServer.IdentityResources; + +namespace CompanyName.ProjectName.IdentityServer +{ + public class IdentityResourceManager : DomainService + { + private readonly IIdentityResourceRepository _identityResourceRepository; + + public IdentityResourceManager(IIdentityResourceRepository identityResourceRepository) + { + _identityResourceRepository = identityResourceRepository; + } + + public Task> GetListAsync( + int skipCount, + int maxResultCount, + string filter, + bool includeDetails = false, + CancellationToken cancellationToken = default) + { + return _identityResourceRepository.GetListAsync( + "CreationTime", + skipCount, + maxResultCount, + filter, + includeDetails, + cancellationToken); + } + + public Task GetCountAsync(string filter = null, CancellationToken cancellationToken = default) + { + return _identityResourceRepository.GetCountAsync(filter, cancellationToken); + } + + public Task FindByNameAsync( + string name, + bool includeDetails = true, + CancellationToken cancellationToken = default) + { + return _identityResourceRepository.FindByNameAsync(name, includeDetails, cancellationToken); + } + + + public async Task CreateAsync( + string name, + string displayName, + string description, + bool enabled, + bool required, + bool emphasize, + bool showInDiscoveryDocument) + { + var identityResource = await _identityResourceRepository.FindByNameAsync(name, false); + if (null == identityResource) throw new UserFriendlyException(message: $"{name}不存在"); + identityResource = new IdentityResource(GuidGenerator.Create(), name, displayName, description, required, + emphasize, + showInDiscoveryDocument, enabled); + return await _identityResourceRepository.InsertAsync(identityResource); + } + + public async Task UpdateAsync( + string name, + string displayName, + string description, + bool enabled, + bool required, + bool emphasize, + bool showInDiscoveryDocument) + { + var identityResource = await _identityResourceRepository.FindByNameAsync(name, false); + if (null == identityResource) throw new UserFriendlyException(message: $"{name}不存在"); + identityResource.DisplayName = displayName; + identityResource.Description = description; + identityResource.Enabled = enabled; + identityResource.Required = required; + identityResource.Emphasize = emphasize; + identityResource.ShowInDiscoveryDocument = showInDiscoveryDocument; + return await _identityResourceRepository.UpdateAsync(identityResource); + } + + public Task DeleteAsync(Guid id, bool autoSave = false, + CancellationToken cancellationToken = new CancellationToken()) + { + return _identityResourceRepository.DeleteAsync(id, autoSave, cancellationToken); + } + } +} \ No newline at end of file diff --git a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi.Host/Logs/logs.txt b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi.Host/Logs/logs.txt index c7d61da2..04ef741a 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi.Host/Logs/logs.txt +++ b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi.Host/Logs/logs.txt @@ -35612,3 +35612,258 @@ Volo.Abp.AbpInitializationException: An error occurred during the initialize Vol 2021-08-17 17:51:42.289 +08:00 [DBG] Added 0 entity changes to the current audit log 2021-08-17 17:51:42.289 +08:00 [DBG] Added 0 entity changes to the current audit log 2021-08-17 17:51:42.289 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44315/hangfire/stats application/x-www-form-urlencoded;+charset=UTF-8 392 - 200 - application/json 36.3855ms +2021-08-17 23:35:30.514 +08:00 [INF] Starting CompanyName.ProjectName.HttpApi.Host. +2021-08-17 23:37:01.860 +08:00 [INF] Starting CompanyName.ProjectName.HttpApi.Host. +2021-08-17 23:37:05.865 +08:00 [INF] User profile is available. Using 'C:\Users\wangjun\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest. +2021-08-17 23:37:05.978 +08:00 [INF] Loaded ABP modules: +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.ProjectNameHttpApiHostModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.ProjectNameHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.ProjectNameApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.ProjectNameDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Validation.AbpValidationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Settings.AbpSettingsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Security.AbpSecurityModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Data.AbpDataModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Features.AbpFeaturesModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.IdentityServer.AbpIdentityServerDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Users.AbpUsersAbstractionModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.EventBus.AbpEventBusModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Authorization.AbpAuthorizationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Domain.AbpDddDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Auditing.AbpAuditingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Json.AbpJsonModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Timing.AbpTimingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Threading.AbpThreadingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Guids.AbpGuidsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Specifications.AbpSpecificationsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.DataDictionaryManagement.DataDictionaryManagementApplicationContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.DataDictionaryManagement.DataDictionaryManagementDomainSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Account.AbpAccountHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Http.AbpHttpModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Minify.AbpMinifyModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.UI.AbpUiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.HttpApi.AbpPermissionManagementHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.DataDictionaryManagement.DataDictionaryManagementHttpApiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Autofac.AbpAutofacModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Castle.AbpCastleCoreModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Caching.StackExchangeRedis.AbpCachingStackExchangeRedisModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Caching.AbpCachingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Serialization.AbpSerializationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.ProjectNameApplicationModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.ProjectNameDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.BackgroundWorkers.AbpBackgroundWorkersModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Users.AbpUsersDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.IdentityServer.AbpIdentityServerDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.IdentityServer.AbpPermissionManagementDomainIdentityServerModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Emailing.AbpEmailingModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule +2021-08-17 23:37:05.978 +08:00 [INF] - CompanyName.ProjectName.DataDictionaryManagement.DataDictionaryManagementDomainModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Account.AbpAccountApplicationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.Identity.AbpIdentityApplicationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.TenantManagement.AbpTenantManagementApplicationModule +2021-08-17 23:37:05.978 +08:00 [INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementApplicationModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.SettingManagement.AbpSettingManagementApplicationModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.QueryManagement.QueryManagementDomainModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.QueryManagement.QueryManagementDomainSharedModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.DataDictionaryManagement.DataDictionaryManagementApplicationModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.EntityFrameworkCore.ProjectNameEntityFrameworkCoreDbMigrationsModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.EntityFrameworkCore.ProjectNameEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.IdentityServer.EntityFrameworkCore.AbpIdentityServerEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.EntityFrameworkCore.MySQL.AbpEntityFrameworkCoreMySQLModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.BackgroundJobs.EntityFrameworkCore.AbpBackgroundJobsEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.FeatureManagement.EntityFrameworkCore.AbpFeatureManagementEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.QueryManagement.FreeSqlMySql.QueryManagementFreeSqlMySqlModule +2021-08-17 23:37:05.979 +08:00 [INF] - CompanyName.ProjectName.DataDictionaryManagement.EntityFrameworkCore.DataDictionaryManagementEntityFrameworkCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.Account.Web.AbpAccountWebModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.Identity.AspNetCore.AbpIdentityAspNetCoreModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.AspNetCore.Authentication.JwtBearer.AbpAspNetCoreAuthenticationJwtBearerModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-08-17 23:37:05.979 +08:00 [INF] - Volo.Abp.Hangfire.AbpHangfireModule +2021-08-17 23:37:06.059 +08:00 [DBG] Started background worker: Volo.Abp.BackgroundJobs.BackgroundJobWorker +2021-08-17 23:37:06.062 +08:00 [DBG] Started background worker: Volo.Abp.IdentityServer.Tokens.TokenCleanupBackgroundWorker +2021-08-17 23:37:06.210 +08:00 [INF] DB tables already exist. Exit install +2021-08-17 23:37:06.223 +08:00 [INF] Starting Hangfire Server using job storage: 'Server: localhost@CompanyNameProjectNameHangfireDB' +2021-08-17 23:37:06.223 +08:00 [INF] Using the following options for SQL Server job storage: +2021-08-17 23:37:06.224 +08:00 [INF] Queue poll interval: 00:00:15. +2021-08-17 23:37:06.224 +08:00 [INF] Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-08-17 23:37:06.242 +08:00 [DBG] Execution loop BackgroundServerProcess:b9937bca has started in 4.824 ms +2021-08-17 23:37:06.350 +08:00 [INF] Server szqh003802a:37548:07ac3909 successfully announced in 99.8399 ms +2021-08-17 23:37:06.353 +08:00 [INF] Server szqh003802a:37548:07ac3909 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-08-17 23:37:06.353 +08:00 [DBG] Execution loop ServerHeartbeatProcess:a019362d has started in 2.9046 ms +2021-08-17 23:37:06.355 +08:00 [DBG] Execution loop ServerWatchdog:e2d71828 has started in 2.7873 ms +2021-08-17 23:37:06.356 +08:00 [DBG] Execution loop ServerJobCancellationWatcher:bd916993 has started in 2.9333 ms +2021-08-17 23:37:06.359 +08:00 [DBG] Execution loop ExpirationManager:d2f97c9e has started in 4.0471 ms +2021-08-17 23:37:06.360 +08:00 [DBG] Execution loop CountersAggregator:b7e5fd24 has started in 3.2527 ms +2021-08-17 23:37:06.362 +08:00 [DBG] Aggregating records in 'Counter' table... +2021-08-17 23:37:06.362 +08:00 [DBG] Removing outdated records from table 'AggregatedCounter'... +2021-08-17 23:37:06.363 +08:00 [DBG] Execution loop Worker:7075783d has started in 4.1165 ms +2021-08-17 23:37:06.364 +08:00 [DBG] Execution loop Worker:96834e4e has started in 5.0861 ms +2021-08-17 23:37:06.366 +08:00 [DBG] Execution loop Worker:f2ca1b5b has started in 7.536 ms +2021-08-17 23:37:06.388 +08:00 [DBG] Execution loop Worker:349c2df4 has started in 29.618 ms +2021-08-17 23:37:06.388 +08:00 [DBG] Execution loop Worker:9dc00054 has started in 29.629 ms +2021-08-17 23:37:06.388 +08:00 [INF] 2 servers were removed due to timeout +2021-08-17 23:37:06.391 +08:00 [DBG] Execution loop Worker:9df0636f has started in 32.1356 ms +2021-08-17 23:37:06.392 +08:00 [DBG] Execution loop Worker:5ab3b7b8 has started in 33.5551 ms +2021-08-17 23:37:06.395 +08:00 [DBG] Execution loop Worker:4a174327 has started in 35.799 ms +2021-08-17 23:37:06.396 +08:00 [DBG] Execution loop Worker:ad61b3e5 has started in 36.9905 ms +2021-08-17 23:37:06.397 +08:00 [DBG] delete from `AggregatedCounter` where ExpireAt < @now limit @count; +2021-08-17 23:37:06.398 +08:00 [DBG] Execution loop Worker:261849ab has started in 38.9499 ms +2021-08-17 23:37:06.399 +08:00 [DBG] Execution loop Worker:880986a8 has started in 40.5365 ms +2021-08-17 23:37:06.401 +08:00 [DBG] Execution loop Worker:8dac9bfd has started in 42.2178 ms +2021-08-17 23:37:06.403 +08:00 [DBG] Execution loop Worker:51c03d08 has started in 43.9847 ms +2021-08-17 23:37:06.405 +08:00 [DBG] Execution loop Worker:e43ee896 has started in 45.7674 ms +2021-08-17 23:37:06.407 +08:00 [DBG] Execution loop Worker:45e5fbc1 has started in 48.1684 ms +2021-08-17 23:37:06.408 +08:00 [DBG] Execution loop Worker:2ebfd332 has started in 49.3922 ms +2021-08-17 23:37:06.412 +08:00 [DBG] Execution loop Worker:0badb6d0 has started in 52.8736 ms +2021-08-17 23:37:06.414 +08:00 [DBG] Execution loop Worker:aa55e406 has started in 55.1405 ms +2021-08-17 23:37:06.416 +08:00 [DBG] Execution loop Worker:40ce7468 has started in 57.3199 ms +2021-08-17 23:37:06.418 +08:00 [DBG] Execution loop Worker:da65f603 has started in 59.5986 ms +2021-08-17 23:37:06.431 +08:00 [DBG] Execution loop DelayedJobScheduler:13ba9729 has started in 14.8483 ms +2021-08-17 23:37:06.431 +08:00 [INF] Server szqh003802a:37548:07ac3909 all the dispatchers started +2021-08-17 23:37:06.438 +08:00 [DBG] Execution loop RecurringJobScheduler:44d651b9 has started in 19.3144 ms +2021-08-17 23:37:06.446 +08:00 [DBG] removed records count=0 +2021-08-17 23:37:06.446 +08:00 [DBG] Removing outdated records from table 'Job'... +2021-08-17 23:37:06.452 +08:00 [DBG] delete from `Job` where ExpireAt < @now limit @count; +2021-08-17 23:37:06.520 +08:00 [DBG] removed records count=0 +2021-08-17 23:37:06.520 +08:00 [DBG] Removing outdated records from table 'List'... +2021-08-17 23:37:06.529 +08:00 [DBG] delete from `List` where ExpireAt < @now limit @count; +2021-08-17 23:37:06.545 +08:00 [DBG] removed records count=0 +2021-08-17 23:37:06.545 +08:00 [DBG] Removing outdated records from table 'Set'... +2021-08-17 23:37:06.547 +08:00 [DBG] delete from `Set` where ExpireAt < @now limit @count; +2021-08-17 23:37:06.563 +08:00 [DBG] removed records count=0 +2021-08-17 23:37:06.563 +08:00 [DBG] Removing outdated records from table 'Hash'... +2021-08-17 23:37:06.565 +08:00 [DBG] delete from `Hash` where ExpireAt < @now limit @count; +2021-08-17 23:37:06.576 +08:00 [DBG] removed records count=0 +2021-08-17 23:37:06.764 +08:00 [DBG] 1 recurring job(s) processed by scheduler. +2021-08-17 23:37:06.915 +08:00 [INF] Initialized all ABP modules. +2021-08-17 23:37:06.992 +08:00 [INF] Now listening on: http://localhost:44315 +2021-08-17 23:37:06.993 +08:00 [INF] Application started. Press Ctrl+C to shut down. +2021-08-17 23:37:06.993 +08:00 [INF] Hosting environment: Development +2021-08-17 23:37:06.993 +08:00 [INF] Content root path: D:\abp\aspnet-core\services\src\CompanyName.ProjectName.HttpApi.Host +2021-08-17 23:37:07.420 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44315/ - - +2021-08-17 23:37:09.644 +08:00 [INF] Executing endpoint 'CompanyName.ProjectName.Controllers.HomeController.Index (CompanyName.ProjectName.HttpApi.Host)' +2021-08-17 23:37:09.746 +08:00 [INF] Route matched with {action = "Index", controller = "Home", area = "", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult Index() on controller CompanyName.ProjectName.Controllers.HomeController (CompanyName.ProjectName.HttpApi.Host). +2021-08-17 23:37:09.781 +08:00 [INF] Executing RedirectResult, redirecting to /swagger. +2021-08-17 23:37:09.788 +08:00 [INF] Executed action CompanyName.ProjectName.Controllers.HomeController.Index (CompanyName.ProjectName.HttpApi.Host) in 38.6999ms +2021-08-17 23:37:09.788 +08:00 [INF] Executed endpoint 'CompanyName.ProjectName.Controllers.HomeController.Index (CompanyName.ProjectName.HttpApi.Host)' +2021-08-17 23:37:09.808 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44315/ - - - 302 0 - 2389.6398ms +2021-08-17 23:37:09.822 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44315/swagger/index.html - - +2021-08-17 23:37:09.874 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44315/swagger/index.html - - - 200 - text/html;charset=utf-8 51.4525ms +2021-08-17 23:37:10.024 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44315/swagger/v1/swagger.json - - +2021-08-17 23:37:10.374 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44315/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 350.0831ms +2021-08-17 23:37:16.282 +08:00 [INF] Request starting HTTP/1.1 GET http://localhost:44315/abp/Swashbuckle/SetCsrfCookie application/json - +2021-08-17 23:37:16.286 +08:00 [INF] Executing endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2021-08-17 23:37:16.288 +08:00 [INF] Route matched with {area = "Abp", action = "SetCsrfCookie", controller = "AbpSwashbuckle", page = ""}. Executing controller action with signature Void SetCsrfCookie() on controller Volo.Abp.Swashbuckle.AbpSwashbuckleController (Volo.Abp.Swashbuckle). +2021-08-17 23:37:16.313 +08:00 [WRN] The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. +2021-08-17 23:37:16.313 +08:00 [INF] Executed action Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle) in 25.2693ms +2021-08-17 23:37:16.313 +08:00 [INF] Executed endpoint 'Volo.Abp.Swashbuckle.AbpSwashbuckleController.SetCsrfCookie (Volo.Abp.Swashbuckle)' +2021-08-17 23:37:16.314 +08:00 [INF] Request finished HTTP/1.1 GET http://localhost:44315/abp/Swashbuckle/SetCsrfCookie application/json - - 204 - - 31.8918ms +2021-08-17 23:37:16.401 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44315/IdentityServer/ApiResource/page application/json 2 +2021-08-17 23:37:16.409 +08:00 [INF] CORS policy execution failed. +2021-08-17 23:37:16.410 +08:00 [INF] Request origin http://localhost:44315 does not have permission to access the resource. +2021-08-17 23:37:16.415 +08:00 [INF] Executing endpoint 'CompanyName.ProjectName.Controllers.IdentityServers.ApiResourceController.GetListAsync (CompanyName.ProjectName.HttpApi)' +2021-08-17 23:37:16.429 +08:00 [INF] Route matched with {action = "GetList", controller = "ApiResource", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[CompanyName.ProjectName.IdentityServers.Dtos.ApiResourceOutput]] GetListAsync(CompanyName.ProjectName.IdentityServers.Dtos.PagingApiRseourceListInput) on controller CompanyName.ProjectName.Controllers.IdentityServers.ApiResourceController (CompanyName.ProjectName.HttpApi). +2021-08-17 23:37:17.471 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[CompanyName.ProjectName.IdentityServers.Dtos.ApiResourceOutput, CompanyName.ProjectName.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +2021-08-17 23:37:17.491 +08:00 [INF] Executed action CompanyName.ProjectName.Controllers.IdentityServers.ApiResourceController.GetListAsync (CompanyName.ProjectName.HttpApi) in 1062.3405ms +2021-08-17 23:37:17.492 +08:00 [INF] Executed endpoint 'CompanyName.ProjectName.Controllers.IdentityServers.ApiResourceController.GetListAsync (CompanyName.ProjectName.HttpApi)' +2021-08-17 23:37:17.516 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:17.728 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:17.728 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:17.731 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44315/IdentityServer/ApiResource/page application/json 2 - 200 - application/json;+charset=utf-8 1330.1863ms +2021-08-17 23:37:26.786 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44315/IdentityServer/ApiScope/page application/json 2 +2021-08-17 23:37:26.787 +08:00 [INF] CORS policy execution failed. +2021-08-17 23:37:26.787 +08:00 [INF] Request origin http://localhost:44315 does not have permission to access the resource. +2021-08-17 23:37:26.791 +08:00 [INF] Executing endpoint 'CompanyName.ProjectName.Controllers.IdentityServers.ApiScopeController.GetListAsync (CompanyName.ProjectName.HttpApi)' +2021-08-17 23:37:26.793 +08:00 [INF] Route matched with {action = "GetList", controller = "ApiScope", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[CompanyName.ProjectName.IdentityServers.ApiScopes.Dtos.PagingApiScopeListOutput]] GetListAsync(CompanyName.ProjectName.IdentityServers.ApiScopes.Dtos.PagingApiScopeListInput) on controller CompanyName.ProjectName.Controllers.IdentityServers.ApiScopeController (CompanyName.ProjectName.HttpApi). +2021-08-17 23:37:27.003 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[CompanyName.ProjectName.IdentityServers.ApiScopes.Dtos.PagingApiScopeListOutput, CompanyName.ProjectName.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +2021-08-17 23:37:27.005 +08:00 [INF] Executed action CompanyName.ProjectName.Controllers.IdentityServers.ApiScopeController.GetListAsync (CompanyName.ProjectName.HttpApi) in 211.9584ms +2021-08-17 23:37:27.005 +08:00 [INF] Executed endpoint 'CompanyName.ProjectName.Controllers.IdentityServers.ApiScopeController.GetListAsync (CompanyName.ProjectName.HttpApi)' +2021-08-17 23:37:27.013 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:27.039 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:27.039 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:27.039 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44315/IdentityServer/ApiScope/page application/json 2 - 200 - application/json;+charset=utf-8 253.0978ms +2021-08-17 23:37:36.405 +08:00 [DBG] Server szqh003802a:37548:07ac3909 heartbeat successfully sent +2021-08-17 23:37:48.897 +08:00 [INF] Request starting HTTP/1.1 POST http://localhost:44315/IdentityServer/IdentityResource/page application/json 2 +2021-08-17 23:37:48.898 +08:00 [INF] CORS policy execution failed. +2021-08-17 23:37:48.898 +08:00 [INF] Request origin http://localhost:44315 does not have permission to access the resource. +2021-08-17 23:37:48.902 +08:00 [INF] Executing endpoint 'CompanyName.ProjectName.Controllers.IdentityServers.IdentityResourceController.GetListAsync (CompanyName.ProjectName.HttpApi)' +2021-08-17 23:37:48.904 +08:00 [INF] Route matched with {action = "GetList", controller = "IdentityResource", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Application.Dtos.PagedResultDto`1[CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos.PagingIdentityResourceListOutput]] GetListAsync(CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos.PagingIdentityResourceListInput) on controller CompanyName.ProjectName.Controllers.IdentityServers.IdentityResourceController (CompanyName.ProjectName.HttpApi). +2021-08-17 23:37:49.145 +08:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Application.Dtos.PagedResultDto`1[[CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos.PagingIdentityResourceListOutput, CompanyName.ProjectName.Application.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +2021-08-17 23:37:49.147 +08:00 [INF] Executed action CompanyName.ProjectName.Controllers.IdentityServers.IdentityResourceController.GetListAsync (CompanyName.ProjectName.HttpApi) in 242.7946ms +2021-08-17 23:37:49.147 +08:00 [INF] Executed endpoint 'CompanyName.ProjectName.Controllers.IdentityServers.IdentityResourceController.GetListAsync (CompanyName.ProjectName.HttpApi)' +2021-08-17 23:37:49.156 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:49.181 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:49.181 +08:00 [DBG] Added 0 entity changes to the current audit log +2021-08-17 23:37:49.181 +08:00 [INF] Request finished HTTP/1.1 POST http://localhost:44315/IdentityServer/IdentityResource/page application/json 2 - 200 - application/json;+charset=utf-8 284.0134ms diff --git a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ApiScopeController.cs b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ApiScopeController.cs index c0b6935d..0bcf2ff0 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ApiScopeController.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ApiScopeController.cs @@ -20,7 +20,7 @@ namespace CompanyName.ProjectName.Controllers.IdentityServers [HttpPost("page")] [SwaggerOperation(summary: "分页获取ApiScope信息", Tags = new[] {"IdentityServers"})] - public Task> GetListAsync(PagingApiScopeListInput input) + public Task> GetListAsync(PagingApiScopeListInput input) { return _apiScopeAppService.GetListAsync(input); } diff --git a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ClientController.cs b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ClientController.cs index 6513348c..ac2deb66 100644 --- a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ClientController.cs +++ b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/ClientController.cs @@ -19,7 +19,7 @@ namespace CompanyName.ProjectName.Controllers.IdentityServers [HttpPost("page")] [SwaggerOperation(summary: "分页获取Client信息", Tags = new[] {"IdentityServers"})] - public Task> GetListAsync(PagingClientListInput input) + public Task> GetListAsync(PagingClientListInput input) { return _identityServerClientAppService.GetListAsync(input); } diff --git a/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/IdentityResourceController.cs b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/IdentityResourceController.cs new file mode 100644 index 00000000..a20bc7fb --- /dev/null +++ b/aspnet-core/services/src/CompanyName.ProjectName.HttpApi/Controllers/IdentityServers/IdentityResourceController.cs @@ -0,0 +1,50 @@ +using System.Threading.Tasks; +using CompanyName.ProjectName.IdentityServers.IdentityResources; +using CompanyName.ProjectName.IdentityServers.IdentityResources.Dtos; +using CompanyName.ProjectName.Publics.Dtos; +using Microsoft.AspNetCore.Mvc; +using Swashbuckle.AspNetCore.Annotations; +using Volo.Abp.Application.Dtos; + +namespace CompanyName.ProjectName.Controllers.IdentityServers +{ + [Route("IdentityServer/IdentityResource")] + public class IdentityResourceController : ProjectNameController + { + private readonly IIdentityResourceAppService _identityResourceAppService; + + public IdentityResourceController(IIdentityResourceAppService identityResourceAppService) + { + _identityResourceAppService = identityResourceAppService; + } + + [HttpPost("page")] + [SwaggerOperation(summary: "分页获取IdentityResource信息", Tags = new[] {"IdentityServers"})] + public Task> GetListAsync( + PagingIdentityResourceListInput input) + { + return _identityResourceAppService.GetListAsync(input); + } + + [HttpPost("create")] + [SwaggerOperation(summary: "创建IdentityResource", Tags = new[] {"IdentityServers"})] + public Task CreateAsync(CreateIdentityResourceInput input) + { + return _identityResourceAppService.CreateAsync(input); + } + + [HttpPost("update")] + [SwaggerOperation(summary: "更新IdentityResource", Tags = new[] {"IdentityServers"})] + public Task UpdateAsync(UpdateIdentityResourceInput input) + { + return _identityResourceAppService.UpdateAsync(input); + } + + [HttpPost("delete")] + [SwaggerOperation(summary: "删除IdentityResource", Tags = new[] {"IdentityServers"})] + public Task DeleteAsync(IdInput input) + { + return _identityResourceAppService.DeleteAsync(input); + } + } +} \ No newline at end of file