diff --git a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java index d30f2c52c4..adff731504 100644 --- a/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java +++ b/config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java @@ -576,7 +576,7 @@ public class ServerHttpSecurity { * // expect a log in page at "/authenticate" * // a POST "/authenticate" is where authentication occurs * // error page at "/authenticate?error" - * .formLogin("/authenticate"); + * .loginPage("/authenticate"); * return http.build(); * } *