@Requires(property="micronaut.security.redirect.prior-to-login", value="true") @Singleton public class CookiePriorToLoginPersistence extends java.lang.Object implements PriorToLoginPersistence
Constructor and Description |
---|
CookiePriorToLoginPersistence(TokenCookieConfiguration cookieConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(io.micronaut.http.cookie.Cookie cookie,
io.micronaut.http.HttpRequest<?> request)
Configure the cookie.
|
java.util.Optional<java.net.URI> |
getOriginalUri(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse<?> response) |
void |
onUnauthorized(io.micronaut.http.HttpRequest<?> request,
io.micronaut.http.MutableHttpResponse<?> response) |
public CookiePriorToLoginPersistence(@Nullable TokenCookieConfiguration cookieConfiguration)
public void onUnauthorized(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse<?> response)
onUnauthorized
in interface PriorToLoginPersistence
public java.util.Optional<java.net.URI> getOriginalUri(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse<?> response)
getOriginalUri
in interface PriorToLoginPersistence
protected void configure(io.micronaut.http.cookie.Cookie cookie, io.micronaut.http.HttpRequest<?> request)
cookie
- The cookierequest
- The current request