Heimdall tests: a genuine attempt cookie under a name that is no slot is no attempt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b54e8d5dc8
commit
d463336206
1 changed files with 5 additions and 0 deletions
|
|
@ -449,6 +449,11 @@ public sealed class HeimdallCompletionTests
|
|||
Assert.False(refused.Response.Headers.Contains("Set-Cookie"), name);
|
||||
}
|
||||
|
||||
// A genuine cookie value under a name that is no slot is no attempt either: request input never names a slot.
|
||||
var offRing = await host.CompleteAsync(attempt.Nonce, code, attempt.Cookie, HeimdallAttemptCookie.Prefix + "9");
|
||||
AssertRefusedRedirect(offRing);
|
||||
Assert.False(offRing.Response.Headers.Contains("Set-Cookie"));
|
||||
|
||||
Assert.Equal(0, host.Heimdall.RedeemCalls);
|
||||
Assert.Null(await host.Account(accountId));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue