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()