|
|
@ -14,11 +14,7 @@ using Microsoft.Extensions.Hosting; |
|
|
using PackageName.CompanyName.ProjectName.EntityFrameworkCore; |
|
|
using PackageName.CompanyName.ProjectName.EntityFrameworkCore; |
|
|
using PackageName.CompanyName.ProjectName.SettingManagement; |
|
|
using PackageName.CompanyName.ProjectName.SettingManagement; |
|
|
using Volo.Abp; |
|
|
using Volo.Abp; |
|
|
#if OpenIddict
|
|
|
|
|
|
using Volo.Abp.OpenIddict; |
|
|
|
|
|
#elif IdentityServer4
|
|
|
|
|
|
using Volo.Abp.AspNetCore.Authentication.JwtBearer; |
|
|
using Volo.Abp.AspNetCore.Authentication.JwtBearer; |
|
|
#endif
|
|
|
|
|
|
using Volo.Abp.AspNetCore.MultiTenancy; |
|
|
using Volo.Abp.AspNetCore.MultiTenancy; |
|
|
using Volo.Abp.AspNetCore.Serilog; |
|
|
using Volo.Abp.AspNetCore.Serilog; |
|
|
using Volo.Abp.Autofac; |
|
|
using Volo.Abp.Autofac; |
|
|
@ -54,11 +50,7 @@ namespace PackageName.CompanyName.ProjectName; |
|
|
typeof(AbpSettingManagementEntityFrameworkCoreModule), |
|
|
typeof(AbpSettingManagementEntityFrameworkCoreModule), |
|
|
typeof(AbpLocalizationManagementEntityFrameworkCoreModule), |
|
|
typeof(AbpLocalizationManagementEntityFrameworkCoreModule), |
|
|
typeof(AbpTextTemplatingEntityFrameworkCoreModule), |
|
|
typeof(AbpTextTemplatingEntityFrameworkCoreModule), |
|
|
#if OpenIddict
|
|
|
|
|
|
typeof(AbpOpenIddictAspNetCoreModule), |
|
|
|
|
|
#elif IdentityServer4
|
|
|
|
|
|
typeof(AbpAspNetCoreAuthenticationJwtBearerModule), |
|
|
typeof(AbpAspNetCoreAuthenticationJwtBearerModule), |
|
|
#endif
|
|
|
|
|
|
typeof(AbpCachingStackExchangeRedisModule), |
|
|
typeof(AbpCachingStackExchangeRedisModule), |
|
|
typeof(AbpDistributedLockingModule), |
|
|
typeof(AbpDistributedLockingModule), |
|
|
typeof(AbpAspNetCoreMvcWrapperModule), |
|
|
typeof(AbpAspNetCoreMvcWrapperModule), |
|
|
@ -113,14 +105,10 @@ public partial class ProjectNameHttpApiHostModule : AbpModule |
|
|
app.UseRouting(); |
|
|
app.UseRouting(); |
|
|
app.UseCors(); |
|
|
app.UseCors(); |
|
|
app.UseAuthentication(); |
|
|
app.UseAuthentication(); |
|
|
#if OpenIddict
|
|
|
|
|
|
app.UseAbpOpenIddictValidation(); |
|
|
|
|
|
#elif IdentityServer4
|
|
|
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
app.UseJwtTokenMiddleware(); |
|
|
#endif
|
|
|
app.UseMultiTenancy(); |
|
|
app.UseAbpSession(); |
|
|
app.UseAbpSession(); |
|
|
app.UseDynamicClaims(); |
|
|
app.UseDynamicClaims(); |
|
|
app.UseMultiTenancy(); |
|
|
|
|
|
app.UseAuthorization(); |
|
|
app.UseAuthorization(); |
|
|
app.UseSwagger(); |
|
|
app.UseSwagger(); |
|
|
app.UseAbpSwaggerUI(options => |
|
|
app.UseAbpSwaggerUI(options => |
|
|
|