Skip to content

Commit 8a0fe93

Browse files
author
Musa Demir
committed
Merge branch 'aspnetcore3.0' of https://github.com/aspnetboilerplate/module-zero-core-template into aspnetcore3.0
2 parents 0d7337b + 3300c2f commit 8a0fe93

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/AbpCompanyName.AbpProjectName.Web.Mvc.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
5-
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
6-
<PreserveCompilationContext>true</PreserveCompilationContext>
74
<AssemblyName>AbpCompanyName.AbpProjectName.Web.Mvc</AssemblyName>
85
<OutputType>Exe</OutputType>
96
<PackageId>AbpCompanyName.AbpProjectName.Web.Mvc</PackageId>
107
<UserSecretsId>AbpCompanyName-AbpProjectName-56C2EF2F-ABD6-4EFC-AAF2-2E81C34E8FB1</UserSecretsId>
118
<RootNamespace>AbpCompanyName.AbpProjectName.Web</RootNamespace>
9+
<TargetFramework>netcoreapp3.0</TargetFramework>
10+
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
11+
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wp8+wpa81;</AssetTargetFallback>
12+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
13+
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
14+
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
15+
<PreserveCompilationContext>true</PreserveCompilationContext>
16+
<MvcRazorExcludeRefAssembliesFromPublish>false</MvcRazorExcludeRefAssembliesFromPublish>
17+
<PreserveCompilationReferences>true</PreserveCompilationReferences>
1218
</PropertyGroup>
1319

1420
<ItemGroup>

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Startup/Startup.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using Abp.AspNetCore.SignalR.Hubs;
1717
using Abp.Dependency;
1818
using Abp.Json;
19+
using Microsoft.AspNetCore.Authentication.Cookies;
1920
using Newtonsoft.Json.Serialization;
2021

2122

@@ -47,10 +48,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
4748
};
4849
});
4950

50-
services.AddAuthentication(options =>
51-
{
52-
options.DefaultScheme = "Cookies";
53-
}).AddCookie();
51+
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
52+
.AddCookie();
5453

5554
IdentityRegistrar.Register(services);
5655
AuthConfigurer.Configure(services, _appConfiguration);
@@ -86,12 +85,10 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
8685
app.UseRouting();
8786

8887
app.UseAuthentication();
89-
9088
app.UseAuthorization();
9189

9290
app.UseJwtTokenMiddleware();
9391

94-
9592
app.UseEndpoints(endpoints =>
9693
{
9794
endpoints.MapHub<AbpCommonHub>("/signalr");

0 commit comments

Comments
 (0)