Module io.inverno.mod.security.http
Class FormLoginPageHandler<A extends io.inverno.mod.http.base.ExchangeContext,B extends Exchange<A>>
java.lang.Object
io.inverno.mod.security.http.form.FormLoginPageHandler<A,B>
- Type Parameters:
A- the type of the exchange contextB- the type of exchange handled by the handler
- All Implemented Interfaces:
ExchangeHandler<A,,B> ReactiveExchangeHandler<A,B>
public class FormLoginPageHandler<A extends io.inverno.mod.http.base.ExchangeContext,B extends Exchange<A>>
extends Object
implements ExchangeHandler<A,B>
An exhange handler that serves a whitelabel login HTML page.
The resulting HTML page contains a login form with username and password parameters that can be used by a user to submit login credentials and enter an application.
Providing a custom login page is recommended.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a form login page handler targeting the default login action URI.FormLoginPageHandler(String loginActionUri) Creates a form login page handler targeting the specified login action URI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the login action URI targeted by the login form.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.http.server.ExchangeHandler
deferMethods inherited from interface io.inverno.mod.http.server.ReactiveExchangeHandler
intercept
-
Field Details
-
DEFAULT_LOGIN_ACTION_URI
The default login action URI:/login.- See Also:
-
PARAMETER_REDIRECT_URI
The redirect URI query parameter name.This constant is also used in
FormAuthenticationErrorInterceptor,RedirectLoginSuccessHandlerandRedirectLoginFailureHandler.- See Also:
-
PARAMETER_ERROR
The error query parameter name.This constant is also used in
FormAuthenticationErrorInterceptor,RedirectLoginSuccessHandlerandRedirectLoginFailureHandler.- See Also:
-
-
Constructor Details
-
FormLoginPageHandler
public FormLoginPageHandler()Creates a form login page handler targeting the default login action URI.
-
FormLoginPageHandler
Creates a form login page handler targeting the specified login action URI.
- Parameters:
loginActionUri- the login action URI targeted by the login form
-
-
Method Details