@Requires(property="micronaut.security.enabled", notEquals="true") @Filter(value="${endpoints.all.path:/}**") 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, getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doFilter
public EndpointsFilter(EndpointSensitivityProcessor endpointSensitivityProcessor)
endpointSensitivityProcessor
- The processor that resolves endpoint sensitivityprotected Publisher<MutableHttpResponse<?>> doFilterOnce(HttpRequest<?> request, ServerFilterChain chain)
doFilterOnce
in class OncePerRequestHttpServerFilter
request
- The HttpRequest
instancechain
- The ServerFilterChain
instancePublisher
for the Http response