|
|
|
@ -182,7 +182,12 @@ public class WebPeisHttpApiHostModule : AbpModule |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///½â³ýhttpsÏÞÖÆ
|
|
|
|
context.Services.AddOpenIddict() |
|
|
|
.AddServer(option => |
|
|
|
{ |
|
|
|
option.UseAspNetCore().DisableTransportSecurityRequirement(); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//Configure<OpenIddictServerAspNetCoreBuilder>(configure =>
|
|
|
|
@ -454,6 +459,10 @@ public class WebPeisHttpApiHostModule : AbpModule |
|
|
|
app.UseDynamicClaims(); |
|
|
|
app.UseAuthorization(); |
|
|
|
|
|
|
|
//ÅäÖÃÊÇ·ñÆôÓÃswagger
|
|
|
|
var IsSwagger = Convert.ToBoolean(configuration["Swagger:IsEnabled"]); |
|
|
|
if (IsSwagger) |
|
|
|
{ |
|
|
|
app.UseSwagger(); |
|
|
|
app.UseAbpSwaggerUI(c => |
|
|
|
{ |
|
|
|
@ -467,7 +476,7 @@ public class WebPeisHttpApiHostModule : AbpModule |
|
|
|
c.OAuthScopes("WebPeis"); |
|
|
|
c.DefaultModelExpandDepth(-1); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
app.UseAuditing(); |
|
|
|
app.UseAbpSerilogEnrichers(); |
|
|
|
app.UseConfiguredEndpoints(); |
|
|
|
|