Using url with username and password in URL class

Hi,
I'm writting an applet in which I use getAppletContext().showDocument with an URL.
The problem is that I'm using URLs with username and password (http://user:[email protected]/page) and it isn't working because the browser is getting the URL http://user/page.
Is this a bug in the URL class? Or in the showDocument method?
Is there any way to make this work?
Thanks for any help,
Pedro Prospero Luis ([email protected])

I'm not sure whether this is supported behaviour. I've had this syntax fail to work in the Netscape address bar so I can't recommend it as an approach for authentication.
If you want to authenticate the user before redirecting to the page, though, you could try creating a connection to another page on the same server and sending the authorization information then. Your browser may then be successfully authenticated.
See http://www.javaworld.com/javatips/jw-javatip47.html for information on this.
You might not need to read back the page from the server, just connect to it. Might work.

Similar Messages

  • Logging on ISA with username and password in URL

    Hi!
    We have a scenario where a customer have an internal portal and from this portal they access different suppliers webshop and get automatic access since the username and password is supplied in the URL.
    In our current Online Store solution we use a special log on page and the user gets logged in, but how is this possible in ISA?
    Regards
    rollo

    Hi!
    The correct answer should be YES, it is possible!
    It is not related to what Florian wrote, just simly add  the userid and password in the URL.
    Exemple
    https://mybigcompany.com/b2b/b2b/init.do?language=sv&userid=rollo&password=mytopsecretpassword
    The only negative issue is that the first log on will not work, the user get an errormessage and have to enter the log on data again.
    Message was edited by:
            rollo

  • PI as Webservice provider - URL with username and password

    Dear Experts,
    I need to test my webservice in PI from a SOAP client like XMLSpy or SOAPUI.
    I tested the URL from the browser. It prompted for the username and password and worked.
    How do I pass the username and password in the URL when I call this from the SOAP clients?
    I tried the following format:
    http://<server:5xxxx>/XISOAPAdapter/MessageServlet?channel=:<bs>:<soap sender channel>&sap-user=<username>&sap-password=<password>
    I still got a 401 Unauthorized response back.
    Any ideal please?

    Hi
    1) testing through XML Spy
    In your WSDL file provide URL in -
    <soap:address location="http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
    While sending request to server,it will ask XI/PI user id and password itself. The user id must have authorization to invoke web service.Better take SAP_ALL or PIAPPLUSER authorization in this id.
    2) You can pass user id and password also in this URL
    http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel>&sap-user=<username>&sap-password=<password>
    Try both the options.
    Best Regards

  • How to login owa using URL embedding username and password?

    Hi, guys
    Whether can users login O365 owa using url embedding username and password? Such as  https://mail.mycompany.com/owa/....username=myalias...pwd=password... ?
    I found a post http://blog.leederbyshire.com/2012/10/12/how-to-login-to-owa-2010-by-passing-credentials-in-the-url-querystring/
    But it doesn't work.
    Thanks.

    Hi,
    I don't think we can login Office 365 OWA using url embedding username and password.
    The post you found may be a way to login OWA 2010. As mentioned in the post you provided, we need to use code to support with the URL
    https://yourserver.yourdomain.com/owa/?un=yourusername&pw=yourpassword#sthash.cuiZTz5Y.dpuf, not just a simple
    URL.
    There is a location in the blog you mentioned:
    C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\auth\logon.aspx
    It's a location on a computer which installed Exchange server. As stated in the blog, we need to insert the code into the logon.aspx
    file and then login OWA with the URL.
    However, for Office 365 OWA which uses a cloud based server, we can do nothing to change the logon.aspx file for Office 365 OWA. That's why I don't think we can do the trick.
    Regards,
    Steve Fan
    TechNet Community Support

  • Adobe Revel?  I have forgotten:  the URL; my username and password.  How do I ask Adobe for these items?  Thanking your reply !!!

    Adobe Revel? I have forgotten: the URL; my username and password. How do I ask Adobe for these items? Thanking your reply !!!
    [email protected]

    Dave,
    No worries, this link will help you with your issues. You do have a revel account with that email, so resetting your password should be all you need to do. Just click on the "I forgot my password" link on the web page listed below:
    http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    Once you reset your password, you should be able to login to revel at adoberevel.com on a browser or from one of our apps on mac, ios, win8, or android.
    Pattie

  • Pass the username and password in URL to auto log in the application from SharePoint List

    how to Pass the  username and password in URL to auto log in the application from SharePoint List  
    I have a link  in my SharePoint list  when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
    please help me it is possible

    Check out
    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • SOAP URL without username and password

    Hello Everyone,
    its a synchronous SOAP - PI -ECC scenario .
    I have created HTTP URL through sender agreement in integration for testing.
    However, customer now wants HTTPS URL without Username and password in  production URL. How do i create this .
    Regards,
    Ravi

    Hello,
    However, customer now wants HTTPS URL without Username and password in production URL. How do i create this .
    You can disable basic authentication for the sender SOAP Adapter by following William's reply in this thread
    http://forums.sdn.sap.com/thread.jspa?threadID=236507
    However, the authentication will be disabled for all SOAP Sender, so you should weigh-in the impacts of granting that request.
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on Feb 13, 2012 3:51 AM

  • Sign in with username and password every time I want to check emails on my PC using iCloud?

    Signing in with username and password every time I want to check emails on my PC using iCloud
    Having convinced my parents to get rid of their old AOL account and sign up for iCloud to sync their new iPhone with their old PC running Windows 7, I thought I was on to a winner. All working OK but is there any other way to get into emails besides going on iCloud website and signing in with name and password everytime? Can it be set up as a Mail account directly like on a Mac? Or using Outlook or Entourage? Help! I'm not a PC person!!
    ELF

    If they have Win 7 or 8, and Outlook 2007 or newer then you can.
    Just download the iCloud Control Panel for Windows. Install and select the services you want (Mail Contacts and Calendars will appear in Outlook)

  • I couldn't access a website because I used an incorrect username and password.How do I reaccess with correct username and password. Thanks.

    Getting into Avenue5Consulting members only area, I mistakenly used my other username and password. A message came up asking if I wanted to save it and I pressed yes. This didn't open the site, but brought me back to login page. Realizing that I logged in with erroneous username and password, I checked and logged in again with the right username and password, but these were not accepted. Please help! I need to get back to the site to finish my homework!
    Will greatly appreciate your support.

    That issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies
    *http://kb.mozillazine.org/Websites_report_cookies_are_disabled

  • I have Iphone 4s, and the phone will activate itself again. How do I get changed Apple ID on my phone so that I get using the new username and password that is verified? I would like an answer as soon as possible ... Thank you very much.

    I have Iphone 4s, and the phone will activate itself again. This I have verified, but when I shall put this onto my phone, so the phone will not approve the newusername and password. How do I get changed Apple ID on my phone so that I get using the new username and password that is verified? Silly to buy a new phone just for this .... The phone is almost three years old. How long can weexpect this to last? I would like an answer as soon as possible ... Thank you very much.

    It sounds like your device might be in Activation Lock.  Is it asking your to enter in an Apple ID & password, but only showing you the first letter of the email address and then some dots? Example: j•••••@icloud.com?
    If so, do you recognize that email?  Do you have an Apple ID that fits the same format?  If so, then go to www.cloud.com, log in with that Apple ID & password, and see if under Find My iPhone it shows this device.  If so, turn off the device, then remove the device from the list.

  • Copying files from local computer to a remote server which is not in Domain and with username and password?

    "I have one workstation with static IP, Wants to create batch file to log in to this,using user name and password, copy back up files from that workstation to my desktop with batch file, please help
    I am currently using batch file for back up for domain servers with robocopy commands in batch file  but one of the workstation is not in domain and has static ip , also it has username and password,
    Wants to create batch file on my desktop to log in this server---with username and password,, copy files from particular folder and paste it on my desktop in particular folder or auto create that folder,
    please help, "
    P Dave

    JRV,
    I can understand that, 1stly I am not a scripting guy, I know very very basic of this,
    2ndly, I need help , I am not asking anyone here to write code for me, I have already wrote that but its not doing which its suppose to do,
    check below screen shot, after running suggested script, it has mapped drive ,
    now I do not want to do that, I want just files to copy from that machine to my machine, and want script which I can run from any PC,
    Tried with UNC PATH as well, but not making any difference, its keep mapping that server drive to my computer
    P Dave
    JRV,
    I can understand that, 1stly I am not a scripting guy, I know very very basic of this,
    2ndly, I need help , I am not asking anyone here to write code for me, I have already wrote that but its not doing which its suppose to do,
    check below screen shot, after running suggested script, it has mapped drive ,
    now I do not want to do that, I want just files to copy from that machine to my machine, and want script which I can run from any PC,
    Tried with UNC PATH as well, but not making any difference, its keep mapping that server drive to my computer
    P Dave
    Bill - he still sees that "connection" although it isn't mapped it is attached temporarily.
    P - Log off and log back on and the attached connection will be gone.  It is temporary.   Again - knowing the basics of WIndows would let you know this.
    We have given you all of the answers that are possible.  There is no other way unless you have installed things like PowerShell and PowerShell remoting or an FTP server.
    If you do use a drive it can be just as easily deleted after you have finished the copy.
    Again: "NET USE /?" will tell you all of the options.
    Saying you know nothing is not an excuse for not thinking or looking more deeply into the suggestions made by those trying to help you.  This is not a MIcrosoft support forum or help desk.  It is a forum for admiinistrative scripting and assumes
    that those coming here are technically trained or experienced in the basics of Windows technology.
    ¯\_(ツ)_/¯

  • How to logon to the Career Center using you SCN username and password

    We all know how painful it is to have to create yet another username and password for a site, well for the Career Center you don't have to. We are working to have single sign on between SCN and the Career Center but until that time or if you navigate directly to the Career Center site you can log on using your SCN username and password via OpenID. Here is how.
    First, ensure you have set an OpenID username in your SCN profile.
    Then go to the Career Center http://scncareercenter.jobtarget.com and click
    "Access Your Job Seeker Account" for job seekers OR
    "Access Your Employer Account" for employers
    At the bottom of the login box, besides "Have an OpenID?" click on the  "Sign In" link
    In the box type
    http://openid.sap.com/your_open_id_name_from_your_SCN_profile
    and click Login.
    You will be taken to another page on SCN requesting you to login (if you haven't already) and finally approve the JobTarget OpenId login request.
    Viola, you are then brought to your personal account on the Career Center. If this is your first time use, you may need to fill out some necessary pieces for the Career Center account profile.
    Update 24.08.09: We are having some intermittent OpenID issues, will update the post when it is resolved
    Cheers
    Kuhan

    That's really good news!
    Now we have additional link to suggest newbie or job seeker in ABAP
    P.S. Can you please amend  in Forum Rules of Engagement with this information to let the others know? 
    Cheers

  • HT204053 I cannot log into iCloud using my Apple username and password.  I keep getting an error message that states "CANNOT SIGN UP - The Apple ID is valid but is not an iCloud account."  How do I fix this?

    I cannot log into iCloud using my Apple username and password.  I keep getting an error message that states "CANNOT SIGN UP - The Apple ID is valid but is not an iCloud account."  How do I fix this?

    You are getting this message because you are attempting to create an iCloud account on a PC.  You can only create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.2) or higher.  After creating your account on one of these devices you will then be able to sign into the account on your PC.

  • Entering username and password in URL, 4400g, v5.2 ??

    Hi,
    I am trying to display contents of a website which requires me to login each time i exit the webpage.
    Is there a way to include the username and password in the url itself or is there a way to change the DMP web account to match the username and password which is needed for the website?
    I already tried using the format http://username:[email protected]

    Sorry, this type of functionality is not available on the DMP.
    A lot of the responsibility resides on the Hosting Site on how it
    accepts the authentication or Login credentials.  A web or app savy
    developer could probably develop a App (like for iPhone or iTouch)
    which could bring up a Virtual Keyboard which could be used with
    the DMP-4400G and a supported Touchscreen.  Then the user could
    add the credentials using the touch screen.
    Cheers!
    If this answers your question, Please take time to mark thisdiscussion answered & rate the response.
    Thank You!
    T.

  • Using CreateObject for Webservice with username and password

    When using createObject() to call a web service how do I pass
    in the user name and password required by the service?
    If I do a cfdump on the webservice object I see it has
    setUserName() and setPassword() methods but they don't seem to be
    working.
    I also see there are properties named "USERNAME_PROPERTY" and
    "PASSWORD_PROPERTY" but I can't seem to modify them in code. I
    suppose they are protected.
    example:
    ws = createObject("webservice", "
    http://url.to/wsdl.xml",
    "serviceport");
    ws.setUserName("myawesomeusername");
    ws.setPassword("myawesomepassword");
    myReturn = ws.serviceMethodCall("bla");

    quote:
    Originally posted by:
    MACRStockHolder
    For anyone that encounters the same issue/question;
    apparently you can't apply a username/password to the object call
    like you can when using <cfinvoke> to make a web service
    call.
    FYI Adobe: this is VERY limiting, I have to use a web service
    that uses in/out parameters which to the best of my knowledge
    requires the use of createObject() but at the same time the web
    service requires a username and password which I can only do with
    <cfinvoke>. Looks like I will be writing a compiled custom
    tag just for a workaround.
    According to the docs you can provide a username and password
    by passing a struct containing these items to CreateObject
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_18.html#45 14398
    If you like cfinvoke use it. You can get return values by
    using the returnVariable argument. I would assume mutliple output
    parameters would be returned in a struct.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_10.html#4001127

Maybe you are looking for

  • After upgrading to ios5 I cannot sign in because of a server error and I don't know why? Anyone any ideas?

    After the last upgrade being installed on my ipod it now says I have successfully restored my ipod but it will not let me sign in due to a server error? Anyone any ideas?

  • Removing system preferences icons?

    I have a few icons in my system preferences that are no longer needed but I can't seem to delete them. Nothing is showing up in a Spotlight search but the icons are still there!! How do I get rid of them? mark

  • Mapping in to SAP System

    Hi, 1's we complete the AS-IS Document and we have interactions withthe concerned modules how do we map the Process in to SAP.how do we create COPst Centre's Thanks, PM

  • Scheduling agreement MIRO

    Hi experts, I have created Scheduling agreement with account assignment & also i have removed GR & GR based Invoice tick. Now, System does not allow me to do MIRO wrt Scheduling agreement. System allows me to do MIRO wrt Scheduling agreement only aft

  • No items match your search

    I have installed DNG Converter 8.7.1.311 but when selecting files for conversion get the message "No items match your search" although in Windows Explorer the RAW files are clearly there, I have Canon CR2 files and Nikon NEF files but the converter w