Solved

java based web page would like to pass credentials in the url

Posted on 2010-11-22
2
468 Views
Last Modified: 2012-05-10
I have an asp.net application which someone else created and I am trying to fix.

At some point the code writes out to the browser some javascript code that pops up a window.  It is basically just a redirect to another page.  The redirect points to the java page.  When this happens, I get a popup for a username and password.  I would like to pass the username and password in the url instead.  Is this possible?  The popup dialogue seems like it is standard.  I
0
Comment
Question by:jackjohnson44
2 Comments
 
LVL 13

Accepted Solution

by:
George K. earned 250 total points
ID: 34194577
Most Probably you may have to change the javascript code that produces the pop up window.

Alternatively
you can try Basic authentication syntax in url  (if this is the case)
Something like  http://username:password@theserver/gen.ext
you may have to replace  http: with https:

or try with HTTPClient
here is a link with the relative info:http://hc.apache.org/httpclient-3.x/tutorial.html
0
 
LVL 5

Assisted Solution

by:SimonDard
SimonDard earned 250 total points
ID: 34205792
Unfortunately, basic authentication URL's do not work in IE without client side changes:
http://answers.yahoo.com/question/index?qid=20080326141232AAmdLwg

You can check the headers being sent between the browser and the server to find out which URL triggers basic authentication. I recommend livehttpheaders for firefox (http://livehttpheaders.mozdev.org/). Look for a HTTP/1.x 401 header. Once you know which URL triggers authentication, reconfigure the webserver to remove authentication.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now