Can you set username and password when using OWA_UTIL.REDIRECT_URL?

If you have a PSP that runs under a DAD that includes username and password and therefore doesn't require users to log in and you want it to do OWA_UTIL.REDIRECT_URL to another PSP that runs under another DAD that normally requires login using basic database authentication and the first PSP already "knows" the user's username and password, is there any way to use them to skip the login dialog of the second page? Maybe hack into the request and use UTL_HTTP.SET_AUTHENTICATION somehow...?

That doesn't seem to work, and trying that kind of url directly from the browser says "invalid syntax error", so maybe Oracle appserver just doesn't let you do that.
I got the idea of trying to add an authorization header:
OWA_UTIL.MIME_HEADER(BCLOSE_HEADER => FALSE);
HTP.P( 'Authorization: Basic mybase64encodedcredentials' );
OWA_UTIL.REDIRECT_URL('myurl', FALSE);
OWA_UTIL.HTTP_HEADER_CLOSE;
...but it didn't work either and with a little further thought I guess it's obvious why: any code here modifies the response header for this request, not the request header for the redirect.
Message was edited by:
psalmu

Similar Messages

  • How to set username and password when using Proxy class for SOCKS5?

    Hi all,
    I use the proxy class for SOCKS5, so need to set username and password, I don't find where can I set the value. whether the API support it.
    Thanks in advance!

    System.getProperties().put("proxySet", "true");That does nothing. Remove.
    System.getProperties().put("proxyHost", getProxyHost());
    System.getProperties().put("proxyPort", getProxyPort());You should be setting socks.proxyHost and socks.proxyPort here.
    System.setProperty("java.net.socks.username", getSOCKSUsername());
    System.setProperty("java.net.socks.password", getSOCKSPassword());
    Authenticator.setDefault(new ProxyAuth(getSOCKSUsername(), getSOCKSPassword()));You either need the first two lines or the third, not both. See the last link posted above.
    1. After I set the value, I connect internet by proxy, how the proxy server knows the values?Because Java tells it during the SOCKS handshake.
    2. In my app, I just set the values in the system properties, then JVM does remaining work? Remaining work is not concerned?Should be OK unless you have to connect to a different SOCKS proxy from the same JVM, but that kind of thing is problematic anyway due to the curious Authenticator design which is set globally, not per connection as you might expect.

  • Prompt for username and password when executing servlet

    In Weblogic 5.1 when I set the username and password in weblogic.properties file, it prompts for the usertname and password when I execute the gatewayServlet
    weblogic.allow.execute.weblogic.servlet.servlets/gateway.administration=vijay
    weblogic.password.vijay=password
    But I guess this is not the way it can be implemented in 8.1. Please let me know how I can prompt for username and password when executing the servlet. I dont want it to be done programatically. Please let me know whether I can set anything on the properties file.
    Thanks
    Vijay Subramanian

    You can use Apache ACLs, http://httpd.apache.org/docs/1.3/howto/auth.html
    GoodEvening!
    I'm developing a web application using jsp
    technology.
    When the user digit:
    http://<machine address>:<port>/<applicationName>
    I would that a browser prompt login is diplayed to
    the user for enter him username and password,
    before loading the index.jsp page. Is possible
    without using awt or swing components?! using only
    the browser's prompt dialog?!
    p.s.
    sorry 4 my bad english! ;-)

  • How can I specify SMTP Email Server userID and password when using Email VIs?

    How can I specify SMTP Email Server userID and password when using Email VIs included in Internet Toolkit?

    Hi,
    A similar question was posted on Discussion Forums soem time back. Please see the link below.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000C7B00000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    You would find the last post in the above thread quite useful where it has a link to OpenG code. I am also copying that link for your reference.
    http://www.openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools
    Please feel free to respond to this post with any questions/comments you may have.
    Regards,
    Ankita A.
    National Instruments

  • HT3529 can you set up and save groups of more than 10 contacts for imessages for future use?

    can you set up and save groups of more than 10 contacts for imessages for future use?

    It can be done by creating a contact for that group which includes all their email addresses all separated by a comma or semicolon. You may have to format it just right depending on the email service you're using. Also, you will have to type this out in Notes first in order to be able to get the punctuation in there, then copy & paste the entire list into the email field of the new contact.

  • How set  UserName and Password for HTTP Basic Authentication for a servlet

    Hi..
    How set UserName and Password for HTTP Basic Authentication for a servlet in JBoss server?
    Using Tomcat i can do it .(By setting roles in web.xml, and user credintails in tomcat-user.xml).
    But i dont know how do it in JBOSS..
    I am using Netbeans and Eclipse IDEs.. Can we do it by using them also!?
    Thank u

    Hi Raj,
    You can do this by creating a Login screen for the users and check the authentication of each user in PAI i.e. PROCESS AFTER INPUT.
    Store the user information in a database table and check the username and password when the user enters it.
    You can display password as *** also. For this double click on input box designed for password and goto Display tab. Select Invisible in the list and check it.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN <fcode for submit>.
          SELECT SINGLE uname pwd
           FROM <DB table>
           INTO (user, pass)
           WHERE username = user AND
                   password = passwd.
          IF sy-subrc = 0.
    <Go to next screen for further processing>
          ELSE.
    <Display Error message and exit>
          ENDIF.
      ENDCASE.
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

  • HT5439 i can't access my university anyway, how can i add username and password?

    i try to use this solution to apply my university proxy, but it dodn't work. Can u suggest me more about how can i add username and password?

    You should be able to use the OpenVPN Connect app running on your iPad to connect your iPad to the VPN directly. It is an official OpenVPN client for iOS devices.
    In what way is it "not compatible"? Have you tried it? Tunnelblick is an OpenVPN client, so your school's VPN is using the OpenVPN protocol. That means any OpenVPN client should be able to access it. (It is possible, but unlikely, that your school uses encryption that is not available on the iPad, but that would be very unusual.)
    Otherwise, a remote control app on your iPad would let you control your Mac at home. "Back to My Mac", for example, would allow you to control your Mac remotely. The tricky part of this is that usually a VPN is set up to send all Internet traffic via the VPN server, and I'm not sure how that would work with "Back to My Mac".

  • Word 2010 prompts for username and password when opening a document on trusted website

    Hi Guys,
    We have a website (not sure if the site is a sharepoint site) on our trusted domain that asked for username and password when trying to access it. I added the site to our trusted sites zone and this resolved the issue however when I try to open word documents
    I get prompted for usernames and password again if I cancel the credentials box the document opens with no issues. 
    Below is some of the steps i have taken
    - Tried opening other non office documents (e.g. PDF, JPEG) and they open with no issues
    - Tried to opening the word documents with a system that only had word pad install and not Office 2010 and the documents open with no issues so it looks like it's an office 2010 problem 
    Can you please advise how I can resolve this issue and if this is a client issue or an issue on the web server thanks

    Hi,
    This issue is caused by the Office suit itself. When Internet Explorer opens an Office document, the appropriate Office application is started with the path of the document. The Office application then tries to access the document directly from
    the server. This differs from other browsers and other file types. Most browsers download the file and call the application to open the file from the local cache. However, when this occurs, if the opened file is changed and saved,
    the changes are only made to the local copy and not to the server copy.
    To establish the richest experience possible, the first thing that the Office application does is communicate with the server to determine the server type and what web authoring protocol is available. The application does this by making
    an OPTIONS request directly to the server.
    As a new process accessing the server, the Office application is required to renegotiate authentication. This method is more secure than a method in which the new process uses an existing authentication that was established by the browser. 
    Please try the following methods:
    An alternative with full functionality but with a calculated risk
    Client approaches that can reduce the impact
    Alternative configurations when the web server does not support DAV or reduced functionality is acceptable
    For more detail information, please refer to the following link:
    http://support.microsoft.com/kb/2019105/en-us
    Thanks
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Outlook 2013 - Exchange 2013 - Prompts for username and password when EWS basic authentication is enabled

    So we have an Exchange 2013 environment, and a CRM solution that requires basic authentication to EWS internally.  Problem is, after a reboot of our Exchange server, all of our Outlook clients begin prompting for username and password (which nothing
    works) which also starts locking users AD accounts out due to failed login attempts (somehow).  If I disabled basic authentication on EWS, Outlook authenticates as normal using NTLM and there are no issues.  Once Outlook has authenticated, I can
    turn back on basic authentication, and Outlook will be fine until the next time the Exchange server is rebooted.
    Any ideas?

    Hi,
    According to your description, I understand that Outlook client prompted for username and password when Exchange server restart and basic authentication is enabled for EWS.
    If I misunderstand your concern, please do not hesitate to let me know.
    It’s normal. This caused by the difference between basic authentication and NTML authentication:
    Basic, with any version of Outlook prior to 2010, results in a pop up dialog asking for creds. Outlook 2010 makes the 'save this password' actually work, so in an Outlook 2010 or later world, Basic can mean no need to authenticate every time you open/reconnect,
    but in all earlier versions, you will have to enter creds every time.
    NTLM, when used by a client that is domain joined and logged in with cached creds, results in the client simply sending the cached in creds to the server, resulting in what looks like a pretty seamless single sign on experience. However, if you want to do pre-authentication
    at something like TMG, and not let the traffic go all the way to CAS, you need to configure TMG for this.
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Allen Wang
    TechNet Community Support

  • How to set username and password at line vty 0 4?

    hi guys,
    would like to know how i can set username and password so when i telnet to the router, i can login as username and password..?
    thks,
    ken

    Hi,
    for a simple telnet password with user name & password, find the steps below,
    aaa new-model
    username password
    line vty 0 4
    password
    login local
    if you wanted different types of users to login with different privilagez,do the following
    username privilege 15 password
    username privilege 5 password
    privilege exec level 15 conf t
    privilege exec level 5 show
    line vty 0 4
    password
    login local
    in the above statement "privilege exec level 15 "will have full access, "privilege exec level 5" will have the limited like "show" related
    hope this helps.
    rate this post if cleared.

  • What are the username and password when i click the ICM of JavaEE5@SAP

    when i click the ICM of JavaEE5@SAP in the sapmanagement console mmc, It need i input the username and password for Web_admin, What are the username and password when i click the ICM of JavaEE5@SAP and which tools act the role as the VisualAdministrator of NetWeaver04s and NetWeaver2004s?
    thank you very much

    Hello Guoging,
    you can login to ICM with username Administrator and password abc123. That is described in the start.html file, which you can find in the unzipped Downloadpackage of SAP NetWeaver Java EE 5 Edition.
    You can use NetWeaverAdministrator(NWA) or config tool to configure this edition. NWA
    needs to be installed separately. If you have a default installation, go to
    C:SAPJP1JC00j2eeNWAdmin and execute the file install.bat. Ensure that NetWeaver is running, enter user Administrator und the Masterpassword you chose during installation and wait around 20 Minutes or more. NWA is started automatically after installation has finished in your webbrowser.
    For more information on NWA read the Administrationguide
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/806e75a0-0e01-0010-2587-fc518de8ac1a">Administration Guide</a>

  • HT1338 how can i find username and password for MobileMe ?

    please let me know which username and password should use for Mobileme.

    MobileMe is closed; if you had an account and did not migrate it to iCloud it's lost. If you migrated it to iCloud the login is your @me.com email address and the password is what you chose.
    If you never had a MobileMe account (and paid for it prior to June last year) the situation does not arise - you may have come across some old documentation encouraging you to sign up, but this is no longer possible.
    You can open an iCloud account for free, which will give you email and syncing facilities:
    Get Started with iCloud

  • Ftp username and password when downloading ?

    Hi,
    I'm asked an username and password when trying to download JEE edition 5 (name for ftp://ftp.sap.com).
    What does it mean ?
    Thanks for Help.
    Etienne
    PS : server seems to be busy with more than 150 simultaneous connection....

    Hi Etienne!
    Our official download location is the one <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn?rid=/library/uuid/da699d27-0b01-0010-99b0-f11458f31ef2">on SDN</a>. Or is there anything that limits you to the use of the FTP protocoll?
    Best Regards,
    Robin

  • How to set username and password for a tcode ?

    Dear Gurus,
              Greets..................
    Pls provide me solution for my scenario. My program is module pool program.It has been assigned by a Tcode.when the end user enter the tcode in command box,I should display a small screen with username and password(****).If username and password is correct,it should allow the end user to execute that particular tcode.If not i should display warning message that he is not eligible to access that program.
    Thanks & Regards.
    Raj

    Hi Raj,
    You can do this by creating a Login screen for the users and check the authentication of each user in PAI i.e. PROCESS AFTER INPUT.
    Store the user information in a database table and check the username and password when the user enters it.
    You can display password as *** also. For this double click on input box designed for password and goto Display tab. Select Invisible in the list and check it.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN <fcode for submit>.
          SELECT SINGLE uname pwd
           FROM <DB table>
           INTO (user, pass)
           WHERE username = user AND
                   password = passwd.
          IF sy-subrc = 0.
    <Go to next screen for further processing>
          ELSE.
    <Display Error message and exit>
          ENDIF.
      ENDCASE.
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

  • 10.0.01 ver. doesn't sign-in automatically i look up password manager, it seems it saves usernames and passwords, when i visit websites i am not automatically signed in and when i reopen mozilla it keeps on asking main password to sign-in all the time.

    10.0.01 version doesn't sign-in automatically... i look up password manager, it seems to it saves usernames and passwords, when i try to visit that website i am not automatically signed in and when i reopen mozilla it keeps on asking main password to sign-in all the time... it happened after mozilla updated itself... please help about it.. (i dont have problems like this in Opera browser)
    mozilla fills user name when i click but after that it asks for main password (whats the purpose of remembering passwords if it will ask for main password)
    by the way main password for password manager is of course useful but it şs useful whenever i want to use it not all the time i open mozilla .
    and not all the time i open a website or forum which i often use...
    there were no problems before it updated itself...
    please tell me the solution

    my problem is not related with using main password or not...
    in former versions of firefox i was automatically signed in to websites without any click... it wasnt asking me to sign-in (because my usernames and passwords were remembered-and saved in password manager)
    in this version they are remembered again but i have to write first 2-3 letters of my username and it remembers my username then it remembers password...
    for example when i clicked twitter.com my account and my homepage as automatically opened, but in this version when i click twitter.com it opens the sign-in page and i write first 2 letters of my user name it remembers name and password and then i signin
    (difference i was at where i want to sign in with one click--- but in new version 1click for webpage-1 click for clicking to username are-1-2 letter writing to find my user name-1 click to remember password-1 click to sign in) an addition: also if i am using main password i am entering main password and click to sign-in
    This can be little problem to u, but it is really annoying problem, 9-10 clicks more for each webpage which i wanted mozilla to remember my usernames and passwords... it also asks main password if i am using...
    if i want to visit 5-6 different websites it means 70-80 clicks more and 50-60 letters typing according to your main password .. (in opera and mozillas former versions it is just 5-6 clicks)
    so main problem is the cookies were remembered in all the sessions but after it updated to v.10.0.1 expiry date of cookies of same websites that i visit are just for one session... it is not related with the websites and their servers that i visit because if so how can Opera remembers all the time...

Maybe you are looking for