Skip to content

Commit 4d30fac

Browse files
authored
Merge branch 'release/2.2' => 'release/3.0' (#14714)
2 parents 8c39137 + 4fac291 commit 4d30fac

File tree

7 files changed

+11
-1
lines changed

7 files changed

+11
-1
lines changed

eng/PatchConfig.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Directory.Build.props checks this property using the following condition:
1515

1616
<PropertyGroup Condition=" '$(VersionPrefix)' == '3.0.1' ">
1717
<PackagesInPatch>
18+
Microsoft.Net.Http.Headers;
19+
Microsoft.AspNetCore.CookiePolicy;
1820
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore;
1921
@microsoft/signalr;
2022
Microsoft.Net.Http.Headers;

src/Security/Authentication/OpenIdConnect/samples/OpenIdConnectSample/OpenIdConnectSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>

src/Security/Authentication/OpenIdConnect/samples/OpenIdConnectSample/Startup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public Startup(IConfiguration config, IWebHostEnvironment env)
3030
}
3131

3232
public IConfiguration Configuration { get; set; }
33+
3334
public IWebHostEnvironment Environment { get; }
3435

3536
private void CheckSameSite(HttpContext httpContext, CookieOptions options)

src/Security/Authentication/WsFederation/samples/WsFedSample/WsFedSample.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<Reference Include="Microsoft.Extensions.FileProviders.Embedded" />
1616
<Reference Include="Microsoft.Extensions.Logging.Console" />
1717
<Reference Include="Microsoft.Extensions.Logging.Debug" />
18+
<Reference Include="Microsoft.Net.Http.Headers" />
1819
</ItemGroup>
1920

2021
<ItemGroup>

src/Security/Authentication/samples/SocialSample/SocialSample.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<Reference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" />
2323
<Reference Include="Microsoft.AspNetCore.Authentication.Twitter" />
2424
<Reference Include="Microsoft.Extensions.FileProviders.Embedded" />
25+
<Reference Include="Microsoft.Extensions.Logging.Console" />
26+
<Reference Include="Microsoft.Net.Http.Headers" />
2527
</ItemGroup>
2628

2729
</Project>

src/Security/CookiePolicy/test/CookiePolicyTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class CookiePolicyTests
4343
context.Response.Cookies.Append("C", "C", new CookieOptions { SameSite = Http.SameSiteMode.None });
4444
context.Response.Cookies.Append("D", "D", new CookieOptions { SameSite = Http.SameSiteMode.Lax });
4545
context.Response.Cookies.Append("E", "E", new CookieOptions { SameSite = Http.SameSiteMode.Strict });
46+
context.Response.Cookies.Append("F", "F", new CookieOptions { SameSite = (Http.SameSiteMode)(-1) });
4647
return Task.FromResult(0);
4748
};
4849

@@ -236,6 +237,7 @@ await RunTest("/sameSiteNone",
236237
Assert.Equal("C=C; path=/; samesite=none", transaction.SetCookie[2]);
237238
Assert.Equal("D=D; path=/; samesite=lax", transaction.SetCookie[3]);
238239
Assert.Equal("E=E; path=/; samesite=strict", transaction.SetCookie[4]);
240+
Assert.Equal("F=F; path=/", transaction.SetCookie[5]);
239241
}));
240242
}
241243

src/Security/Security.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server
164164
EndProject
165165
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.AspNetCore.Server.HttpSys", "..\Servers\HttpSys\src\Microsoft.AspNetCore.Server.HttpSys.csproj", "{D6C3C4A9-197B-47B5-8B72-35047CBC4F22}"
166166
EndProject
167+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Net.Http.Headers", "..\Http\Headers\src\Microsoft.Net.Http.Headers.csproj", "{4BB8D7D7-E111-4A86-B6E5-C1201E0DA8CE}"
168+
EndProject
167169
Global
168170
GlobalSection(SolutionConfigurationPlatforms) = preSolution
169171
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)