title: Authentication Required Dialog
body: <p>I run into problem with login screen in netbeans rcp. </p>
  
  <p>server side : glassfish v 3.1 , ejb and HessianServlet   with basic auth in web.xml </p>
  
  <p>client side : netebeans rcp 7.0 and server side Api. </p>
  
  <p>on the server used custom realm and client provides UserName and Password after splash screen, in custom login panel runing on top of DialogDescriptor </p>
  
  <p>login panel code: </p>
  
  <pre><code>public class Installer extends ModuleInstall { 
  ... 
      @Override 
      public void restored() { 
  
  
      DialogDescriptor loginDialog = new DialogDescriptor(panel, "Login Dialog"); 
      loginDialog.setModal(true); 
  
  
      loginDialog.setClosingOptions(new Object[]{}); 
      loginDialog.setOptions(new Object[]{}); 
  
      loginDialog.setButtonListener(al); 
  
      loginDialog.addPropertyChangeListener(new PropertyChangeListener() { 
  
          @Override 
          public void propertyChange(PropertyChangeEvent evt) { 
              if (NotifyDescriptor.CLOSED_OPTION.equals(evt.getNewValue())) { 
                  LifecycleManager.getDefault().exit(); 
              } 
          } 
      }); 
  
      DialogDisplayer.getDefault().notifyLater(loginDialog);     
  ... 
  } 
  </code></pre>
  
  <p>this login panel simply invokes one secured method on server side and if exception do not happend and 
  returned String[] contains user Name and Surname, then login screen disposes and rcp shown to client. </p>
  
  <p>in login panel : </p>
  
  <pre><code>  HessianProxyFactory proxy= new HessianProxyFactory(); 
    proxy.setUser(user); 
    proxy.setPassword(password); 
  
   LoginObject loginObject = xxx.create(LoginObject .class, "&lt;a href="http://localhost:port/trali/vali"&gt;http://localhost:port/trali/vali"); 
  
   String[] value=loginObject .isAppUser("login name"); 
  
  
  if(value==null){ 
  
  //message login failed 
  
  }else { 
  
  //dispose login screen and show main app 
  
  } 
  </code></pre>
  
  <p>everything is OK till client provides correct user name and password, but if login faild on 
  server Netbeans RCP pop ups Authentication Requires Dialog like in web browser 
  basic auth dialog. </p>
  
  <p><img src="https://i.stack.imgur.com/ZVjYp.gif" alt="dialog"></p>
  
  <p><strong>How to disable this dialog?</strong></p>
  
  <p>thanks in advance!</p>