*/
public ContainerRequest filter(ContainerRequest request) {
String authToken = request.getHeaderValue(HEADER_AUTHORIZATION);
String requestDateString = request.getHeaderValue(HEADER_DATE);
String nonce = request.getHeaderValue(HEADER_NONCE);
AuthorizationRequestContext context = new AuthorizationRequestContext(request.getPath(), request.getMethod(),
requestDateString, nonce, authToken);
ExternalUser externalUser = authorizationService.authorize(context);
request.setSecurityContext(new SecurityContextImpl(externalUser));
return request;
}