@Requires(condition=CookieBasedAuthenticationModeCondition.class) @Singleton public class JwtCookieClearerLogoutHandler extends java.lang.Object implements LogoutHandler
CookieLoginHandler
.Modifier and Type | Field and Description |
---|---|
protected AccessTokenCookieConfiguration |
accessTokenCookieConfiguration |
protected java.lang.String |
logout |
protected RefreshTokenCookieConfiguration |
refreshTokenCookieConfiguration |
Constructor and Description |
---|
JwtCookieClearerLogoutHandler(AccessTokenCookieConfiguration accessTokenCookieConfiguration,
RefreshTokenCookieConfiguration refreshTokenCookieConfiguration,
RedirectConfiguration redirectConfiguration) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.MutableHttpResponse<?> |
logout(io.micronaut.http.HttpRequest<?> request) |
protected final java.lang.String logout
protected final AccessTokenCookieConfiguration accessTokenCookieConfiguration
protected final RefreshTokenCookieConfiguration refreshTokenCookieConfiguration
public JwtCookieClearerLogoutHandler(AccessTokenCookieConfiguration accessTokenCookieConfiguration, RefreshTokenCookieConfiguration refreshTokenCookieConfiguration, RedirectConfiguration redirectConfiguration)
accessTokenCookieConfiguration
- JWT Cookie ConfigurationrefreshTokenCookieConfiguration
- Refresh token cookie configurationredirectConfiguration
- Redirect configurationpublic io.micronaut.http.MutableHttpResponse<?> logout(io.micronaut.http.HttpRequest<?> request)
logout
in interface LogoutHandler
request
- The HttpRequest
being executed