- All Implemented Interfaces:
- javax.ws.rs.container.ContainerRequestFilter
@Provider
@PreMatching
public class PersonaFilter
extends Object
implements javax.ws.rs.container.ContainerRequestFilter
When metrics is deployed in the full Hawkular server, the value of the tenant header is determined by the current
Persona which is injected from PersonaService. The person is only injected when the request supplies valid
credentials. This filter will not execute when the request has invalid credentials or no credentials at all. In
the former case a 401 status code is included in the response. In the latter case, a 500 status code is included
in the response. See AuthenticationITest.groovy for examples.
- Author:
- jsanda