Module io.inverno.mod.security.http
Class RedirectLoginSuccessHandler<A extends Authentication,B extends io.inverno.mod.http.base.ExchangeContext,C extends Exchange<B>>
java.lang.Object
io.inverno.mod.security.http.form.RedirectLoginSuccessHandler<A,B,C>
- Type Parameters:
A- the authentication typeB- the context typeC- the exchange type
- All Implemented Interfaces:
LoginSuccessHandler<A,B, C>
public class RedirectLoginSuccessHandler<A extends Authentication,B extends io.inverno.mod.http.base.ExchangeContext,C extends Exchange<B>>
extends Object
implements LoginSuccessHandler<A,B,C>
A login success handler implementation that redirects the client (302) after a successful login authentication.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a redirect login success handler which redirects the client to the default login success URI.RedirectLoginSuccessHandler(String loginSuccessUri) Creates a redirect login success handler which redirects the client to the specified login success URI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the URI where the client is redirected after a successful login authentication.reactor.core.publisher.Mono<Void> handleLoginSuccess(C exchange, A authentication) Handles successful authentication.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.security.http.login.LoginSuccessHandler
andThen, compose
-
Field Details
-
DEFAULT_LOGIN_SUCCESS_URI
The default login success URI:/.- See Also:
-
-
Constructor Details
-
RedirectLoginSuccessHandler
public RedirectLoginSuccessHandler()Creates a redirect login success handler which redirects the client to the default login success URI.
-
RedirectLoginSuccessHandler
Creates a redirect login success handler which redirects the client to the specified login success URI.
- Parameters:
loginSuccessUri- the URI where to redirect the client after a successful login authentication
-
-
Method Details
-
getLoginSuccessUri
Returns the URI where the client is redirected after a successful login authentication.
- Returns:
- the login success URI
-
handleLoginSuccess
Description copied from interface:LoginSuccessHandlerHandles successful authentication.
- Specified by:
handleLoginSuccessin interfaceLoginSuccessHandler<A extends Authentication,B extends io.inverno.mod.http.base.ExchangeContext, C extends Exchange<B>> - Parameters:
exchange- the exchangeauthentication- the authentication resulting from the authentication process- Returns:
- a mono which completes when the authentication has been handled
-