fix: CSRF flow ships the raw token, not the HMAC cookie
This commit is contained in:
1 parent
73254cbf80
commit
2ea8cfd83d
13 files changed
+60
-28
No files matched your search
@@ -47,7 +47,7 @@ final class MatchActionSupportTest extends TestCase
|
||||
match: $this->validMatchArray(),
|
||||
csrf: $csrf,
|
||||
turnToken: $badToken,
|
||||
cookies: ['__csrf' => $cookie],
|
||||
cookies: ['__csrf' => $cookie, '__csrf_token' => $token],
|
||||
);
|
||||
|
||||
$result = $support->verify($request);
|
||||
@@ -66,7 +66,7 @@ final class MatchActionSupportTest extends TestCase
|
||||
match: ['this' => 'is not a match'],
|
||||
csrf: $csrf,
|
||||
turnToken: 'whatever',
|
||||
cookies: ['__csrf' => $cookie],
|
||||
cookies: ['__csrf' => $cookie, '__csrf_token' => $token],
|
||||
);
|
||||
|
||||
$result = $support->verify($request);
|
||||
|
||||
Reference in new issue
Block a user