- All Implemented Interfaces:
- io.micronaut.core.order.Ordered, io.micronaut.http.filter.HttpFilter, io.micronaut.http.filter.HttpServerFilter
@Filter(value="/**")
public class AccessFilter
extends java.lang.Object
implements io.micronaut.http.filter.HttpServerFilter
A filter used to restrict access to the server: the server
should only be available from a loopback connection, and
if an access token is specified, then the request should
include the access token header.
This is to avoid services abusing the server to spawn
containers: when the server is started, a random access key
should be generated, and passed to the allowed clients.