Skip to content

Commit

Permalink
Remove CSRF comment
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad committed Feb 24, 2025
1 parent 9485561 commit 4f40ffb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/labkey/test/tests/ApiKeyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import org.apache.hc.core5.http.HttpStatus;
import org.jetbrains.annotations.Nullable;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;
Expand Down Expand Up @@ -396,7 +397,7 @@ private void verifySessionKeyCsrf(Connection connection) throws IOException
assertTrue("CSRF success", resp.getProperty("success"));

WhoAmIResponse whoAmI = new WhoAmICommand().execute(connection, null);
whoAmI.getCSRF(); // Should this match the browser?
Assert.assertNotEquals("API CSRF", WebTestHelper.getCookies(PasswordUtil.getUsername()).get(Connection.X_LABKEY_CSRF).getValue(), whoAmI.getCSRF());
}
catch (CommandException e)
{
Expand Down

0 comments on commit 4f40ffb

Please sign in to comment.