mirror of
https://github.com/google/nomulus
synced 2026-09-02 06:07:03 +00:00
Remove XsrfTokenManager fallback for validating legacy tokens
This is the third step of migrating to the new format: removing support for the legacy format. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=150512556
This commit is contained in:
@@ -62,7 +62,12 @@ public class XsrfTokenManagerTest {
|
||||
|
||||
@Test
|
||||
public void testValidate_tokenWithMissingParts() {
|
||||
assertThat(xsrfTokenManager.validateToken("foo")).isFalse();
|
||||
assertThat(xsrfTokenManager.validateToken("1:123")).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidate_tokenWithBadVersion() {
|
||||
assertThat(xsrfTokenManager.validateToken("2:123:base64")).isFalse();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user