title: Authorization in dropwizard
body: <p>I want to make an small application using dropwizard in 0.8.0-rc3-SNAPSHOT. In that I want if any user will call my api user should pass an authtoken in the header part.What I have done till now is---</p>
  
  <pre><code>@Override
  public void run(HelloWorldConfigurationhelloWorldConfiguration,Environment environment) throws Exception{
  environment.jersey().register(new ViewResource());      
  environment.servlets().addFilter("MyCustomRequestFilter", new MyCustomRequestFilter())
              .addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST),false, "/*");
  }
  
  public class MyCustomRequestFilter implements ContainerRequestFilter {
  @Override
  public ContainerRequest filter(ContainerRequest request) {
      System.out.print("test");
      if ( request.getQueryParameters().containsKey("validateMeParam") ) {
                /* validation logic */
      }
      // finished validation
      return request;
  }
  }
  </code></pre>
  
  <p>I don't know what I am doing wrong.It's not working.</p>