RedirectRejectionHandler
instead@Deprecated @Requires(property="micronaut.security.session.legacy-rejection-handler", notEquals="false") @Replaces(value=HttpStatusCodeRejectionHandler.class) @Singleton public class SessionSecurityfilterRejectionHandler extends java.lang.Object implements RejectionHandler
RejectionHandler
implementation for Session-based Authentication.Modifier and Type | Field and Description |
---|---|
protected SecuritySessionConfiguration |
securitySessionConfiguration
Deprecated.
|
Constructor and Description |
---|
SessionSecurityfilterRejectionHandler(SecuritySessionConfiguration securitySessionConfiguration)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> |
reject(io.micronaut.http.HttpRequest<?> request,
boolean forbidden)
Deprecated.
If request is HTML then do a 303 Redirect, if not respond with correspondent HTTP Status code.
|
protected final SecuritySessionConfiguration securitySessionConfiguration
public SessionSecurityfilterRejectionHandler(SecuritySessionConfiguration securitySessionConfiguration)
securitySessionConfiguration
- Security Session Configuration session storepublic org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> reject(io.micronaut.http.HttpRequest<?> request, boolean forbidden)
reject
in interface RejectionHandler
request
- HttpRequest
being processedforbidden
- if true indicates that although the user was authenticated he did not had the necessary access priviledges.