public class ServerHttpSecurity.FormLoginSpec
extends java.lang.Object
ServerHttpSecurity.formLogin()| Modifier and Type | Method and Description |
|---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.FormLoginSpec |
authenticationEntryPoint(org.springframework.security.web.server.ServerAuthenticationEntryPoint authenticationEntryPoint)
How to request for authentication.
|
ServerHttpSecurity.FormLoginSpec |
authenticationFailureHandler(org.springframework.security.web.server.authentication.ServerAuthenticationFailureHandler authenticationFailureHandler)
Configures how a failed authentication is handled.
|
ServerHttpSecurity.FormLoginSpec |
authenticationManager(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
The
ReactiveAuthenticationManager used to authenticate. |
ServerHttpSecurity.FormLoginSpec |
authenticationSuccessHandler(org.springframework.security.web.server.authentication.ServerAuthenticationSuccessHandler authenticationSuccessHandler)
The
ServerAuthenticationSuccessHandler used after authentication success. |
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity |
disable()
Disables HTTP Basic authentication.
|
ServerHttpSecurity.FormLoginSpec |
loginPage(java.lang.String loginPage)
Configures the log in page to redirect to, the authentication failure page, and when authentication is
performed.
|
ServerHttpSecurity.FormLoginSpec |
requiresAuthenticationMatcher(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher requiresAuthenticationMatcher)
Configures when authentication is performed.
|
ServerHttpSecurity.FormLoginSpec |
securityContextRepository(org.springframework.security.web.server.context.ServerSecurityContextRepository securityContextRepository)
The
ServerSecurityContextRepository used to save the Authentication. |
public ServerHttpSecurity.FormLoginSpec authenticationManager(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
ReactiveAuthenticationManager used to authenticate. Defaults to
ServerHttpSecurity.authenticationManager(ReactiveAuthenticationManager).authenticationManager - the authentication manager to useServerHttpSecurity.FormLoginSpec to continue configuringpublic ServerHttpSecurity.FormLoginSpec authenticationSuccessHandler(org.springframework.security.web.server.authentication.ServerAuthenticationSuccessHandler authenticationSuccessHandler)
ServerAuthenticationSuccessHandler used after authentication success. Defaults to
RedirectServerAuthenticationSuccessHandler.authenticationSuccessHandler - the success handler to useServerHttpSecurity.FormLoginSpec to continue configuringpublic ServerHttpSecurity.FormLoginSpec loginPage(java.lang.String loginPage)
loginPage - the url to redirect to which provides a form to log in (i.e. "/login")ServerHttpSecurity.FormLoginSpec to continue configuringauthenticationEntryPoint(ServerAuthenticationEntryPoint),
requiresAuthenticationMatcher(ServerWebExchangeMatcher),
authenticationFailureHandler(ServerAuthenticationFailureHandler)public ServerHttpSecurity.FormLoginSpec authenticationEntryPoint(org.springframework.security.web.server.ServerAuthenticationEntryPoint authenticationEntryPoint)
authenticationEntryPoint - the entry point to useServerHttpSecurity.FormLoginSpec to continue configuringloginPage(String)public ServerHttpSecurity.FormLoginSpec requiresAuthenticationMatcher(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher requiresAuthenticationMatcher)
requiresAuthenticationMatcher - the matcher to useServerHttpSecurity.FormLoginSpec to continue configuringloginPage(String)public ServerHttpSecurity.FormLoginSpec authenticationFailureHandler(org.springframework.security.web.server.authentication.ServerAuthenticationFailureHandler authenticationFailureHandler)
authenticationFailureHandler - the handler to useServerHttpSecurity.FormLoginSpec to continue configuringloginPage(String)public ServerHttpSecurity.FormLoginSpec securityContextRepository(org.springframework.security.web.server.context.ServerSecurityContextRepository securityContextRepository)
ServerSecurityContextRepository used to save the Authentication. Defaults to
NoOpServerSecurityContextRepository. For the SecurityContext to be loaded on subsequent
requests the ReactorContextWebFilter must be configured to be able to load the value (they are not
implicitly linked).securityContextRepository - the repository to useServerHttpSecurity.FormLoginSpec to continue configuringpublic ServerHttpSecurity and()
ServerHttpSecurityServerHttpSecurity to continue configuringpublic ServerHttpSecurity disable()
ServerHttpSecurity to continue configuringprotected void configure(ServerHttpSecurity http)