Class OneTimeTokenSubmitPageGeneratingWebFilter
java.lang.Object
org.springframework.security.web.server.ui.OneTimeTokenSubmitPageGeneratingWebFilter
- All Implemented Interfaces:
org.springframework.web.server.WebFilter
public final class OneTimeTokenSubmitPageGeneratingWebFilter
extends Object
implements org.springframework.web.server.WebFilter
Creates a default one-time token submit page. If the request contains a
token
query param the page will automatically fill the form with the token value.- Since:
- 6.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) voidsetLoginProcessingUrl(String loginProcessingUrl) Specifies the URL that the submit form should POST to.voidsetRequestMatcher(ServerWebExchangeMatcher requestMatcher) Use thisServerWebExchangeMatcherto choose whether this filter will handle the request.
-
Constructor Details
-
OneTimeTokenSubmitPageGeneratingWebFilter
public OneTimeTokenSubmitPageGeneratingWebFilter()
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) - Specified by:
filterin interfaceorg.springframework.web.server.WebFilter
-
setRequestMatcher
Use thisServerWebExchangeMatcherto choose whether this filter will handle the request. By default, it handles/login/ott.- Parameters:
requestMatcher-ServerWebExchangeMatcherto use
-
setLoginProcessingUrl
Specifies the URL that the submit form should POST to. Defaults to/login/ott.- Parameters:
loginProcessingUrl-
-