1
0
mirror of synced 2026-05-22 13:23:17 +00:00

Propagate All Missing Factors

Closes gh-18000
This commit is contained in:
Josh Cummings
2025-10-15 15:46:30 -06:00
parent af1de950ae
commit cefc0cddec
3 changed files with 37 additions and 6 deletions
@@ -403,7 +403,8 @@ public class FormLoginConfigurerTests {
UserDetails user = PasswordEncodedUser.user();
this.mockMvc.perform(get("/profile").with(user(user)))
.andExpect(status().is3xxRedirection())
.andExpect(redirectedUrl("http://localhost/login?factor.type=password&factor.reason=missing"));
.andExpect(redirectedUrl(
"http://localhost/login?factor.type=password&factor.type=ott&factor.reason=missing&factor.reason=missing"));
this.mockMvc
.perform(post("/ott/generate").param("username", "rod")
.with(user(user))