Skip to content

Commit 3d0c2ab

Browse files
committed
Auth scheme was removed from cookie names since ASP.NET Core 5.0
- dotnet/aspnetcore#25279
1 parent 0dc430b commit 3d0c2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/GSS.Authentication.CAS.AspNetCore.Tests/CasAuthenticationMiddlewareTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public async Task ValidatingAndCreatingTicketSuccess_ShouldResponseWithAuthCooki
106106
var cookies = signinResponse.Headers.GetValues("Set-Cookie");
107107
Assert.Equal(2, cookies.Count());
108108
Assert.Contains(cookies, x => x.StartsWith(CookieAuthenticationDefaults.CookiePrefix + CookieAuthenticationDefaults.AuthenticationScheme));
109-
Assert.Contains(cookies, x => x.StartsWith($"{CookieAuthenticationDefaults.CookiePrefix}Correlation.{CasDefaults.AuthenticationType}"));
109+
Assert.Contains(cookies, x => x.StartsWith($"{CookieAuthenticationDefaults.CookiePrefix}Correlation"));
110110
Assert.Equal("/", signinResponse.Headers.Location.OriginalString);
111111

112112
using var authorizedRequest = signinResponse.GetRequest("/");

0 commit comments

Comments
 (0)