Formatting as well as adding a missing defer

Issue gh-15699
This commit is contained in:
Josh Cummings
2024-10-07 16:40:22 -06:00
parent 2ca2e56383
commit b26f2af5d5
3 changed files with 12 additions and 7 deletions

View File

@@ -292,7 +292,8 @@ public class OneTimeTokenLoginSpecTests {
http
.authorizeExchange((authorize) -> authorize
.anyExchange()
.authenticated())
.authenticated()
)
.oneTimeTokenLogin((ott) -> ott
.generatedOneTimeTokenHandler(new TestServerGeneratedOneTimeTokenHandler())
);
@@ -314,7 +315,8 @@ public class OneTimeTokenLoginSpecTests {
http
.authorizeExchange((authorize) -> authorize
.anyExchange()
.authenticated())
.authenticated()
)
.oneTimeTokenLogin((ott) -> ott
.generateTokenUrl("/generateurl")
.generatedOneTimeTokenHandler(new TestServerGeneratedOneTimeTokenHandler("/redirected"))
@@ -339,7 +341,8 @@ public class OneTimeTokenLoginSpecTests {
http
.authorizeExchange((authorize) -> authorize
.anyExchange()
.authenticated())
.authenticated()
)
.formLogin(Customizer.withDefaults())
.oneTimeTokenLogin((ott) -> ott
.generatedOneTimeTokenHandler(new TestServerGeneratedOneTimeTokenHandler())
@@ -362,7 +365,8 @@ public class OneTimeTokenLoginSpecTests {
http
.authorizeExchange((authorize) -> authorize
.anyExchange()
.authenticated())
.authenticated()
)
.oneTimeTokenLogin(Customizer.withDefaults());
// @formatter:on
return http.build();