Heimdall sign-in: the start result carries the cookie name; fix a test string literal

The commit before this one did not compile (a split string literal in the tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 04:41:36 +02:00
commit 5626532571
3 changed files with 5 additions and 8 deletions

View file

@ -379,10 +379,7 @@ app.MapGet("/auth/heimdall/{provider}", async (
requireMemberAccess,
cancellationToken);
httpContext.Response.Cookies.Append(
HeimdallAttemptCookie.NameFor(start.Nonce),
start.CookieValue,
HeimdallAttemptCookie.Options());
httpContext.Response.Cookies.Append(start.CookieName, start.CookieValue, HeimdallAttemptCookie.Options());
return Results.Redirect(start.AuthorizationUrl.ToString());
}
catch (HeimdallAuthException error)