From cfc5dd83e23f18e975e3ff2b86d27e6e54767bea Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 1 Dec 2023 10:50:52 +0900 Subject: [PATCH] =?UTF-8?q?test:=20=E4=B8=8D=E8=A6=81=E3=81=AA=E5=A4=89?= =?UTF-8?q?=E6=95=B0=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/e2eTest/kotlin/oauth2/OAuth2LoginTest.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/e2eTest/kotlin/oauth2/OAuth2LoginTest.kt b/src/e2eTest/kotlin/oauth2/OAuth2LoginTest.kt index e3c29202..723f6f05 100644 --- a/src/e2eTest/kotlin/oauth2/OAuth2LoginTest.kt +++ b/src/e2eTest/kotlin/oauth2/OAuth2LoginTest.kt @@ -45,15 +45,13 @@ class OAuth2LoginTest { println("CSRF TOKEN = $attr") - val csrfToken = attr - webTestClient .post() .uri("/api/v1/accounts") .contentType(MediaType.APPLICATION_FORM_URLENCODED) .body( BodyInserters.fromFormData("username", "oatuh-login-test") - .with("password", "very-secure-password").with("_csrf", csrfToken) + .with("password", "very-secure-password").with("_csrf", attr) ) .cookie("JSESSIONID", session) .exchange()