@Override
protected void configureContext(ServletContextHandler context) {
final ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();
securityHandler.setRealmName("brcm-accounts-api");
final Authenticator authenticator = new WesabeAuthenticator(securityHandler);
securityHandler.setAuthenticator(authenticator);
final Constraint requireAuthentication = new Constraint();
requireAuthentication.setAuthenticate(true);
requireAuthentication.setRoles(new String[] { "user" });