|
|
|
@ -11,7 +11,6 @@ using Microsoft.AspNetCore.Cors; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
using Volo.Abp; |
|
|
|
using Volo.Abp.Data; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.Threading; |
|
|
|
|
|
|
|
@ -32,7 +31,7 @@ namespace EShopOnAbp.IdentityService |
|
|
|
var hostingEnvironment = context.Services.GetHostingEnvironment(); |
|
|
|
|
|
|
|
JwtBearerConfigurationHelper.Configure(context, "IdentityService"); |
|
|
|
// SwaggerConfigurationHelper.Configure(context, "Identity Service API");
|
|
|
|
|
|
|
|
context.Services.AddCors(options => |
|
|
|
{ |
|
|
|
options.AddDefaultPolicy(builder => |
|
|
|
@ -78,7 +77,6 @@ namespace EShopOnAbp.IdentityService |
|
|
|
app.UseAbpRequestLocalization(); |
|
|
|
app.UseStaticFiles(); |
|
|
|
app.UseRouting(); |
|
|
|
// app.UseHttpMetrics();
|
|
|
|
app.UseAuthentication(); |
|
|
|
app.UseAbpClaimsMap(); |
|
|
|
app.UseAuthorization(); |
|
|
|
@ -90,10 +88,7 @@ namespace EShopOnAbp.IdentityService |
|
|
|
app.UseAbpSerilogEnrichers(); |
|
|
|
app.UseAuditing(); |
|
|
|
app.UseUnitOfWork(); |
|
|
|
app.UseConfiguredEndpoints(endpoints => |
|
|
|
{ |
|
|
|
// endpoints.MapMetrics();
|
|
|
|
}); |
|
|
|
app.UseConfiguredEndpoints(); |
|
|
|
} |
|
|
|
|
|
|
|
public override void OnPostApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
|