@Requires(property="micronaut.security.enabled", notEquals="true") @Filter(value="/**") public class EndpointsFilter extends OncePerRequestHttpServerFilter
Endpoint requests which have sensitive true. Disabled if micronaut.security is enabled.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Publisher<MutableHttpResponse<?>> |
doFilterOnce(HttpRequest<?> request,
ServerFilterChain chain)
Returns 401 if the route is a match for an endpoint with sensitive true.
|
doFilter, getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoFilterpublic EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
endpointSensitivityProcessor - The processor that resolves endpoint sensitivityprotected Publisher<MutableHttpResponse<?>> doFilterOnce(HttpRequest<?> request, ServerFilterChain chain)
doFilterOnce in class OncePerRequestHttpServerFilterrequest - The HttpRequest instancechain - The ServerFilterChain instancePublisher for the Http response