How to prevent basic auth dialog box?

Hi all,
I have a webservice protected with basic authtentication.
From my understanding I thought it would be possible to prompt the
user for a user name and password using a flex form and then do a
setCredentials on the WebService object to provide the server with
the needed info, thus avoiding the broswers dialog box.
However this does not work and I still get the browser dialog
box. Even worse if I log out of the flex application and try and
log in as a new user it seems the old credentials are cached by the
browser so the new user get security errors as the flex usernam and
basic auth username do not match up. This is how the app has been
coded.
Any idea?
thanks

I'm sorry you're question is not clear to me. Please explain a bit further.
tanzim                                                                                  
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit

Similar Messages

  • Disable JWS BASIC Auth dialog ?

    I have a Swing based client application that has a custom Login page. We have converted our client/server access from RMI to SOAP. The issue I have is when a user enters incorrect user/pass in my custom swing based login UI, JWS intercepts the response and throws up its own BASIC Auth dialog, instead of just failing so my users can reenter their credintials in the swing based login UI.
    Now, if you go ahead and reenter proper credintials in the JWS BASIC Auth dialog, then everything continues on ok. What I need to do is NOT get the JWS BASIC Auth dialog.
    This is easy to do with a HTML/JSP based login page, cause I could just use FORM based authentication. But that doesn't seem to work with a swing based client because there is no real login-form to redirect to.
    Any Ideas would be appreciated.

    It shouldn't be much harder than adding to your class this:
        private static class NOAuthenticator extends Authenticator {
         protected PasswordAuthentication getPasswordAuthentication() {
             return null;
        static {
         Authenticator.setDefault(new NOAuthenticator());
        }You may need a constructor, not sure, I have one in my version 'cause it'a bit more complex: it prevents server authentication (for exactly the same reason you exposed), but allows Proxy authentication.
    Bye.

  • How to get title in Dialog box

    How to get title in Dialog box like "Adobe® Connect™ "

    Works for me. What happened when you tried?
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    tell application "Finder" to display dialog "I need ® or ™ in dialog box text" with title "I need ® or ™ in dialog box text" buttons {"Aha!"} default button 1</pre>

  • How to avoid the windows "dialog box" when we use flexprintjob class

    in the print segment
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65381-7ffc.html
    it says
       printJob.start();
    This causes the operating system to display a Print dialog box.
    this  windows "dialog box" which is used to set the page size, page index, or some other page settings.
    but in my case , i can't let user see this dialog box.
        how can i avoid this "dialog box" when i call   printJob.start();
    it is my big issue ,please help to give a suggestion

      hi   how can i set the "ie" "internet explorer"  to avoid the "dialog box."  if i have to do it .
    thank you very much !

  • How to use save as dialog box in swing

    hello,
    at the time of start the application by clicking the button, i hv to give the path to save my output file, how can i used this dialog box
    thanks

    [http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html]

  • How to develop a file dialog box in a oracle forms

    please help me its an urgent task,
    how to develop a file dialog box in a oracle 6i forms
    in html we will use <input type ="file"/> to open a dialog box,so that we can upload file to the server .similarly how to upload a file using oracle.

    For Windows there is a library that comes with forms d2kwutil.pll that contains a package win_api_dialog. use the open_file procedure.
    NOTE******** when you select a file from whatever windows directory you choose, it will change your working directory to that directory so right after that you will need to reassign your working directory back to what it originally was.
    Also, you will need to have d2kwut60.dll in the same directory as your d2kwutil.pll. Both come with Developer.
    Example code is
    v_runpath := win_api_environment.get_working_directory(TRUE);
    v_filename := win_api_dialog.open_file('Find File','C:\','*.*',TRUE, 0, TRUE);
    win_api_environment.set_working_directory(v_runpath,true);
    Hope this helps

  • How we can make CQ dialog box movable on page like sidestick?

    Hello All,
    How we can make CQ dialog box movable on page like sidestick.
    Should we have to use any property for that.
    Please tell me if any onw know this ticks.
    Thanks a ton in advance...
    Regards,
    Satish

    You could use dialogMode property configured under cq:editConfig node.
    dialogMode : floating
    http://dev.day.com/docs/en/cq/current/developing/components.html
    This should make your component dialog float and be movable.
    - Ashish

  • How to dispose the modal dialog box

    hi all
    can any one please tell me how to supress the modal dialog box.
    Means iam triggering the a new pop up (modal dialog box) after this
    when iam click ok or cancel buttons on this modal dialog box it is not returing to
    the screen from where it is tiggering. Can any one tell how to achieve this.
    what r the statements i have to write for this in the PAI.

    HI,
    in PAI u have to write like..
    CASE OK_CODE.
    WHEN 'OK'.
    UR CODE.........
    WHEN 'CANC'.
       SET SCREEN 0.
       LEAVE SCREEN.
    OR
       LEAVE TO SCREEN XXX. " UR CALLING SCREEN NUMBER
    ENDCASE.
    Pls close the thread if the problem is solved and reward to all helpful answers.
    Regards
    SAB

  • How to stop internet explorer dialog box

    Hi all. I'm new here. I've just added a flash image ( a moving one ) to my web page. It's like a moving logo. I've used this code
    <object width="150" height="95"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></param><param name="flashvars" value=src=http://localhost/school/logovid.flv&controlBarMode=none&controlBarAutoHide=false&playButto nOverlay=false&loop=true&autoPlay=true&scaleMode=stretch"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="150" height="95" flashvars="src=http://localhost/school/logovid.flv&controlBarMode=none&controlBarAutoHide=false&playButto nOverlay=false&loop=true&autoPlay=true&scaleMode=stretch"></embed></object>
    to get it working. It's fine in safari, firefox, chrome and flock. But in opera I get a dialog box asking if it's ok to connect  to ftp.adobe.com and then the image doesn't display. Also in IE I get a dialog asking me if it's ok to allow something.
    I can live with the opera problem because it's a minority but I really need to resolve the IE issue because so many people use it.
    Any help very much appreciated.
    Marcus.

    Hi Mike,
    >>Basically i want all users to get restricted to IE9.
    Internet Explorer 10 will be available as an “Important” update through the Automatic Update feature of Windows Update. Users of Windows 7 Service Pack 1, who have opted to
    download and install updates automatically through Windows Update (recommended setting), will automatically be upgraded to Internet Explorer 10.
    However, we can prevent users from upgrading to IE 10 via Windows Server Update Services (WSUS) or System Center 2012 Configuration Manager.
    Regarding how to prevent users from upgrading to IE10 or IE11, the following two articles can be referred to for more information.
    Internet Explorer 10 Delivery through Automatic Updates
    http://technet.microsoft.com/en-us/ie/jj898508.aspx
    Internet Explorer 11 Delivery through Automatic Updates
    http://technet.microsoft.com/en-in/ie/dn449235
    Best regards,
    Frank Shen

  • OAM - Basic Auth dialog continues to show despite config.xml changes

    I have set enforce-valid-basic-auth-credentials to false in config.xml of the application domain I am running some apps from.
    The applications are all configured for BASIC authentication.
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>myrealm</realm-name>
    </login-config>
    The problem is that after logging on from the OAM default FORM page the Basic Authentication dialog is still being presented.
    I have referenced the following SR's to try find more info:
    OIM/OAM SSO Weblogic Authentication Pop up After Login [ID 1081011.1]
    OAM Configuration Steps Needed to Prevent a Second Authentication Prompt by Weblogic [ID 559442.1]

    The issue has been resolved.  There was no interesting work-a-round or fix involved.

  • In javascript how to invoke save as dialog box ,which saves .pdf files only

    Through javascript i generated a save as dialog box. the main problem is , it is only saving .html and .doc files by default. how to restrict it to save only .pdf files.
    the code i used is
    function SaveFile(fname)
    document.execCommand('SaveAs', null, fname)
    <input type="button" value ="save" onclick="SaveFile('');">
    /**********************************************************************/

    this is actually a Java forum its slightly different from javascript
    but try this not sure if it helps
    <input type="button" value ="save" onclick="SaveFile('.pdf');">

  • How do I get a dialog box to reappear?

    I'm trying to write an application where
    1. There is an opening frame. The user can click a 'start' button which
    opens the first of a series of dialog boxes.
    2 Each of these dialog boxes has a user input field and buttons 'next' 'back' and 'cancel' , to step forward/backward through user input , or to cancel & return to the opening frame.
    3. As each dialog box opens up , the preceeding one should be hid.
    4. If the user clicks 'back' , the current box should close and the
    preceeding one should reopen.
    Straightforward enough and I've got this working at the start of the progam
    for the transition between the opening frame and the first dialog box, by
    doing this:
    in the opening frame...
    //start button..
    this.setVisible(false);
    Dialog001 d001 = new Dialog001(this,"",true);
    d001.setVisible(true);;
    and in the code in the dialog box d001, for the '<< back' button..
    void button1_actionPerformed(ActionEvent e) {
    dispose();
    super.getOwner().setVisible(true);
    *********** so far so good : everything works OK **************
    The problem is when I repeat this in the second dialog box , the
    first dialog box doesn't reappear.
    I have looked in the books and tries various things, but no good
    so far
    How do I get the previous dialog box to reappear?
    Also, how will the 'cancel' button work in the second (and subsequent)
    dialog boxes (instead of the preceeding dialog box reappearing, the
    original opening frame should reappear) ?
    Thanks in advance
    Mike
    [the jdk is 1.2.2 , OS is win98, IDE is jbuilder ver 3]

    How is this: (you can change it from Swing to AWT.)
    setVisible(false);
    int index = 0;     
    Vector v  = new Vector();
    dialog d;
    while (index != -1)
         if (index == v.size())
               v.add(new dialog(this,index));
              d = (dialog)v.get(index);
         else
              d = (dialog)v.get(index);
                  d.setVisible(true);     
         index = d.ret;
         setVisible(true);
    public class dialog extends JDialog
         JButton next = new JButton("next");
         JButton back = new JButton("back");
         JButton canc = new JButton("cancel");
         int     me;
         int     ret;
    public dialog(JFrame f,int i)
         super(f,""+i,true);
         me = i;
         getContentPane().setLayout(new GridLayout(4,0));     
         getContentPane().add(next); 
         getContentPane().add(back);
         getContentPane().add(canc);
         next.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
              {     ret = me+1;      
                   setVisible(false);     
         back.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
              {     ret = me-1;
                   setVisible(false);          
         canc.addActionListener(new ActionListener()
         {     public void actionPerformed( ActionEvent e )
              {     ret = -1;
                   setVisible(false);          
         getContentPane().add(new TextField("abced"));
         setBounds(100,100,100,150);
         setVisible(true);

  • How to force SAVE/OPEN dialog box to appear in IE? (save output locally)

    Hi all!
    I currently have various reports in Excel format outputted in cache via the iAS browser.
    Is there a way to programatically force a SAVE/OPEN BOX to appear in IE whenever my output is spreadsheet/excel? The prompt box appears on Firefox and Opera but not in IE, i take it that IE has already been 'configured' to open excel spreadsheet automatically in the browser.
    Another spin to the question is: How do end users save the Reports output directly to their local machine; instead of having it opened in the browser or saving it in the midtier server

    I found a backdoor solution to this:
    at the URL link, i added &mimetype=application, this will force IE to show the save dialog box because it does not know what the application type is.

  • How come the "save as" dialog box keeps popping up whenever I try to use alt codes?

    I type with diacritical marks regularly but recently, when I press and hold Fn + Alt + the numerical code, it brings up the "save as" dialog box. This seems to be a Firefox-specific issue because this doesn't happen on Microsoft Word + other programs. I am wondering how to disable this "save as" dialog box shortcut, or how to just get the alt codes to work.

    Hm, this is the list of add-ons that are currently enabled on my browser:
    <br><br>
    Dictionnaire française moderne (it can't be this one because I just installed it today)<br>
    Java Console 6.0.18<br>
    Java Console 6.0.25<br>
    Java Console 6.0.20<br>
    Java Console 6.0.24<br>
    pdfit (doesn't seem like it's this one either)<br><br>
    Conclusion: might it be one of the Java Consoles?
    Thanks!

  • How to get save as dialog box.

    i want to open a "save as" dialog box from file menu.and i want to specify by myself which type of item should be in "Save as type" drop box in the save as dialog box.how to do it???????plz help........thanx in adv.

    I believe that the Sun tutorial over [How To Use File Choosers|http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html] will be able to give you the answer for this one. This and the JFileChooser API and other associated APIs.

Maybe you are looking for

  • G510 Can´t use keyboard and mouse at the same time

    I got my y50-70 laptop four days ago for gaming and when i played portal for the first time i noticed I had a really hard time playing it. It wasn't until I was at Glados that I realized that it was because my laptop wouldn't recognize my finger move

  • HT204053 How do I get wifi on my iphone

    How do I get wifi on my iphone

  • CHECK DEPOSIT HELP PLEASE!!!

    Hello to everyone. i have got a problem with check deposits. I have configured Transaction Code FF68: Manual Check Deposit. When I Execute the same, no document that gets posted but a statement gets generated. I have checked the Gl Account assignment

  • JPA - Columns to java.util.Map

    I need to map the columns of a DB table into a java.util.Map object. Any idea about how to implement this feature? These are the columns of my table:    | ID | Value01 | Value02 | Value03 | ... | ValueN |I'd like to obtain a bean like this: public cl

  • Error message - cannot connect to fullfilment center

    When I try to download an e-book onto my lap top, I get an error message "cannot connect to fullfilment center. Please check to make sure connected to the internet." Connection to the internet is not the problem. I tried to uninstall and re-install A